From 47479df22e14354883655534063e97b2f37441b0 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Thu, 24 Aug 2006 08:32:57 +0000 Subject: r17775: use an enum to get rid of compiler warnings metze (This used to be commit c66cf31afd99d537b1f4dfc8ff1502dfa6accfd3) --- source4/lib/ldb/modules/asq.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'source4/lib/ldb/modules') 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; -- cgit