diff options
author | Stefan Metzmacher <metze@samba.org> | 2006-09-18 07:52:16 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 11:51:59 -0500 |
commit | 258a465e20e007a30043220367d17ecfc87b4f90 (patch) | |
tree | e85402425f7b199bb87fa95537eeb084861b4066 /source3/tdb/common | |
parent | 8155621d54c7385a60274b30572770bd4f17e504 (diff) | |
download | samba-258a465e20e007a30043220367d17ecfc87b4f90.tar.gz samba-258a465e20e007a30043220367d17ecfc87b4f90.tar.bz2 samba-258a465e20e007a30043220367d17ecfc87b4f90.zip |
r18605: sync dlinklist.h with samba4, that means DLIST_ADD_END()
and DLIST_DEMOTE() now take the type of the tmp pointer
not the tmp pointer itself anymore.
metze
(This used to be commit 2f58645b7094e81dff3734f11aa183ea2ab53d2d)
Diffstat (limited to 'source3/tdb/common')
-rw-r--r-- | source3/tdb/common/tdbutil.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/source3/tdb/common/tdbutil.c b/source3/tdb/common/tdbutil.c index b946f856aa..45e1891324 100644 --- a/source3/tdb/common/tdbutil.c +++ b/source3/tdb/common/tdbutil.c @@ -720,7 +720,6 @@ TDB_LIST_NODE *tdb_search_keys(TDB_CONTEXT *tdb, const char* pattern) TDB_DATA key, next; TDB_LIST_NODE *list = NULL; TDB_LIST_NODE *rec = NULL; - TDB_LIST_NODE *tmp = NULL; for (key = tdb_firstkey(tdb); key.dptr; key = next) { /* duplicate key string to ensure null-termination */ @@ -741,7 +740,7 @@ TDB_LIST_NODE *tdb_search_keys(TDB_CONTEXT *tdb, const char* pattern) rec->node_key = key; - DLIST_ADD_END(list, rec, tmp); + DLIST_ADD_END(list, rec, TDB_LIST_NODE *); DEBUG(18, ("checking %s matched pattern %s\n", key_str, pattern)); } else { |