svn commit: samba r17775 - in
branches/SAMBA_4_0/source/lib/ldb/modules: .
metze at samba.org
metze at samba.org
Thu Aug 24 08:32:58 GMT 2006
Author: metze
Date: 2006-08-24 08:32:57 +0000 (Thu, 24 Aug 2006)
New Revision: 17775
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=17775
Log:
use an enum to get rid of compiler warnings
metze
Modified:
branches/SAMBA_4_0/source/lib/ldb/modules/asq.c
Changeset:
Modified: branches/SAMBA_4_0/source/lib/ldb/modules/asq.c
===================================================================
--- branches/SAMBA_4_0/source/lib/ldb/modules/asq.c 2006-08-24 08:19:43 UTC (rev 17774)
+++ branches/SAMBA_4_0/source/lib/ldb/modules/asq.c 2006-08-24 08:32:57 UTC (rev 17775)
@@ -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 @@
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;
More information about the samba-cvs
mailing list