summaryrefslogtreecommitdiff
path: root/source4/lib/ldb
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2006-08-24 08:32:57 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:16:40 -0500
commit47479df22e14354883655534063e97b2f37441b0 (patch)
tree8adeb36acd3ed0c548e1dbadd0d46b6796650c4b /source4/lib/ldb
parent845e288ea4c5cb09932d3b1b9bf50a7f0e495b24 (diff)
downloadsamba-47479df22e14354883655534063e97b2f37441b0.tar.gz
samba-47479df22e14354883655534063e97b2f37441b0.tar.bz2
samba-47479df22e14354883655534063e97b2f37441b0.zip
r17775: use an enum to get rid of compiler warnings
metze (This used to be commit c66cf31afd99d537b1f4dfc8ff1502dfa6accfd3)
Diffstat (limited to 'source4/lib/ldb')
-rw-r--r--source4/lib/ldb/modules/asq.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/source4/lib/ldb/modules/asq.c b/source4/lib/ldb/modules/asq.c
index 1185cd8dac..2ab04afe59 100644
--- a/source4/lib/ldb/modules/asq.c
+++ b/source4/lib/ldb/modules/asq.c
@@ -36,11 +36,6 @@
#include "includes.h"
#include "ldb/include/includes.h"
-#define ASQ_CTRL_SUCCESS 0
-#define ASQ_CTRL_INVALID_ATTRIBUTE_SYNTAX 21
-#define ASQ_CTRL_UNWILLING_TO_PERFORM 53
-#define ASQ_CTRL_AFFECTS_MULTIPLE_DSA 71
-
struct asq_context {
enum {ASQ_SEARCH_BASE, ASQ_SEARCH_MULTI} step;
@@ -51,7 +46,12 @@ struct asq_context {
const char * const *req_attrs;
char *req_attribute;
- int asq_ret;
+ enum {
+ ASQ_CTRL_SUCCESS = 0,
+ ASQ_CTRL_INVALID_ATTRIBUTE_SYNTAX = 21,
+ ASQ_CTRL_UNWILLING_TO_PERFORM = 53,
+ ASQ_CTRL_AFFECTS_MULTIPLE_DSA = 71
+ } asq_ret;
struct ldb_request *base_req;
struct ldb_reply *base_res;