diff options
author | Michael Adam <obnox@samba.org> | 2009-08-26 12:58:47 +0200 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2009-08-27 22:29:22 +0200 |
commit | cc248f7dfccf015586627ecef5fc5a475cc7f842 (patch) | |
tree | 33582bcabb36a377d185a36265130a6ed3775771 /lib/util/dlinklist.h | |
parent | 2a3270beec2800e0a5dcb69af111d053abaa9245 (diff) | |
download | samba-cc248f7dfccf015586627ecef5fc5a475cc7f842.tar.gz samba-cc248f7dfccf015586627ecef5fc5a475cc7f842.tar.xz samba-cc248f7dfccf015586627ecef5fc5a475cc7f842.zip |
util: fix comment and clarify argument name in DLIST_DEMOTE()
Michael
Diffstat (limited to 'lib/util/dlinklist.h')
-rw-r--r-- | lib/util/dlinklist.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/util/dlinklist.h b/lib/util/dlinklist.h index 1a4ebb6fa0..693b43dd27 100644 --- a/lib/util/dlinklist.h +++ b/lib/util/dlinklist.h @@ -87,11 +87,11 @@ do { \ }\ } while (0) -/* demote an element to the end of the list, needs a tmp pointer */ -#define DLIST_DEMOTE(list, p, tmp) \ +/* demote an element to the end of the list, needs the entry type */ +#define DLIST_DEMOTE(list, p, type) \ do { \ DLIST_REMOVE(list, p); \ - DLIST_ADD_END(list, p, tmp); \ + DLIST_ADD_END(list, p, type); \ } while (0) /* concatenate two lists - putting all elements of the 2nd list at the |