summaryrefslogtreecommitdiff
path: root/source3/param
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2008-02-28 02:13:48 -0800
committerJeremy Allison <jra@samba.org>2008-02-28 02:13:48 -0800
commit22ac09c08c6e9ab56602ba44a799257d6435ae15 (patch)
treeab473eec2941759c3f4214266aa2a5cdda9ae572 /source3/param
parent9d37794a6c1db3b15ff235d18df05b0d9601b6b7 (diff)
downloadsamba-22ac09c08c6e9ab56602ba44a799257d6435ae15.tar.gz
samba-22ac09c08c6e9ab56602ba44a799257d6435ae15.tar.bz2
samba-22ac09c08c6e9ab56602ba44a799257d6435ae15.zip
Remove my change
(This used to be commit 7bf4216644187549697caace4a2a48803b57fa5a)
Diffstat (limited to 'source3/param')
-rw-r--r--source3/param/loadparm.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c
index 71a5e90ea4..e23c30789a 100644
--- a/source3/param/loadparm.c
+++ b/source3/param/loadparm.c
@@ -3490,6 +3490,7 @@ bool lp_file_list_changed(void)
DEBUG(6, ("lp_file_list_changed()\n"));
if (lp_config_backend() == CONFIG_BACKEND_REGISTRY) {
+ uint64_t conf_cur_seqnum;
if (conf_ctx == NULL) {
WERROR werr;
werr = libnet_conf_open(NULL, &conf_ctx);
@@ -3499,12 +3500,12 @@ bool lp_file_list_changed(void)
return false;
}
}
- if (conf_last_seqnum !=
- libnet_conf_get_seqnum(conf_ctx, NULL, NULL))
- {
- DEBUGADD(6, ("regdb seqnum changed: old = %lu, "
- "new = %lu\n", (unsigned long)conf_last_seqnum,
- (unsigned long)libnet_conf_get_seqnum(conf_ctx, NULL, NULL)));
+ conf_cur_seqnum = libnet_conf_get_seqnum(conf_ctx, NULL, NULL);
+ if (conf_last_seqnum != conf_cur_seqnum) {
+ DEBUGADD(6, ("regdb seqnum changed: old = %llu, "
+ "new = %llu\n",
+ (unsigned long long)conf_last_seqnum,
+ (unsigned long long)conf_cur_seqnum));
return true;
} else {
/*