summaryrefslogtreecommitdiff
path: root/source3/include/dlinklist.h
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2000-11-28 22:17:44 +0000
committerJeremy Allison <jra@samba.org>2000-11-28 22:17:44 +0000
commit366bf693d21a5fe3020b8528ae879d9734e67231 (patch)
treeeb0e3b5b53deec83ddb743fb6a6217b53b3e056d /source3/include/dlinklist.h
parente28ad8f1d5a4c701d021f0e4a7893920eb021b6f (diff)
downloadsamba-366bf693d21a5fe3020b8528ae879d9734e67231.tar.gz
samba-366bf693d21a5fe3020b8528ae879d9734e67231.tar.bz2
samba-366bf693d21a5fe3020b8528ae879d9734e67231.zip
include/dlinklist.h: Added '{' '}' around DLIST_PROMOTE so it can be used as a single
statement after an 'if'. Tracking this down took 4 hours from my life and ANDREW I WANT THEM BACK !!!!! :-). include/smb.h smbd/password.c: Fixed the bug veritas reported with realloc of the validated_users array growing without bounds. This is now a linked list as god (Andrew) intended :-). Jeremy. (This used to be commit 346f2f9206b9b4ed123e2a61c0a48de630397b8a)
Diffstat (limited to 'source3/include/dlinklist.h')
-rw-r--r--source3/include/dlinklist.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/include/dlinklist.h b/source3/include/dlinklist.h
index 851bf01d38..447948b521 100644
--- a/source3/include/dlinklist.h
+++ b/source3/include/dlinklist.h
@@ -52,5 +52,7 @@
/* promote an element to the top of the list */
#define DLIST_PROMOTE(list, p) \
+{ \
DLIST_REMOVE(list, p) \
- DLIST_ADD(list, p)
+ DLIST_ADD(list, p) \
+}