r15855: more talloc_set_destructor() typesafe fixes. nearly done ...
[bbaumbach/samba-autobuild/.git] / source4 / ntvfs / posix / pvfs_search.c
index 32bef1ae53642b80094ef5cdf15ee8d72eea90c9..4d218fbe9c36db135febec358d3fc22d4ba82c9f 100644 (file)
@@ -35,9 +35,8 @@
 /*
   destroy an open search
 */
-static int pvfs_search_destructor(void *ptr)
+static int pvfs_search_destructor(struct pvfs_search_state *search)
 {
-       struct pvfs_search_state *search = ptr;
        DLIST_REMOVE(search->pvfs->search.list, search);
        idr_remove(search->pvfs->search.idtree, search->handle);
        return 0;