* the RPC-ECHO pipe now works in smbd, as long as the data sizes
[abartlet/samba.git/.git] / source4 / tdb / tdbutil.c
index ce5188300cc5baf8dc0e1e43129712cbf9b247a4..3c22333b4de362c59caf2327297896f43469c4a0 100644 (file)
@@ -710,7 +710,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 */
@@ -731,7 +730,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 {