From: Pierangelo Masarati Date: Tue, 8 Nov 2005 00:40:20 +0000 (+0000) Subject: gdb is much more clever with enums... X-Git-Tag: OPENLDAP_REL_ENG_2_2_MP~66 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=255112e7025d4ed47715c41f2703b5c6b263f1dc;p=openldap gdb is much more clever with enums... --- diff --git a/servers/slapd/overlays/syncprov.c b/servers/slapd/overlays/syncprov.c index 10ce96d7c5..afe894f795 100644 --- a/servers/slapd/overlays/syncprov.c +++ b/servers/slapd/overlays/syncprov.c @@ -483,9 +483,11 @@ syncprov_findbase( Operation *op, fbase_cookie *fc ) * CSN, and generate Present records for them. We always collect this result * in SyncID sets, even if there's only one match. */ -#define FIND_MAXCSN 1 -#define FIND_CSN 2 -#define FIND_PRESENT 3 +typedef enum find_csn_t { + FIND_MAXCSN = 1, + FIND_CSN = 2, + FIND_PRESENT = 3 +} find_csn_t; static int findmax_cb( Operation *op, SlapReply *rs ) @@ -564,7 +566,7 @@ findpres_cb( Operation *op, SlapReply *rs ) } static int -syncprov_findcsn( Operation *op, int mode ) +syncprov_findcsn( Operation *op, find_csn_t mode ) { slap_overinst *on = (slap_overinst *)op->o_bd->bd_info; syncprov_info_t *si = on->on_bi.bi_private;