summaryrefslogtreecommitdiff
path: root/nss/nsswitch.c
diff options
context:
space:
mode:
Diffstat (limited to 'nss/nsswitch.c')
-rw-r--r--nss/nsswitch.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/nss/nsswitch.c b/nss/nsswitch.c
index 8874b0caa1..0fac09ef65 100644
--- a/nss/nsswitch.c
+++ b/nss/nsswitch.c
@@ -755,12 +755,6 @@ nss_new_service (name_database *database, const char *name)
}
-static void
-nothing (void *ptr __attribute__ ((unused)))
-{
-}
-
-
/* Free all resources if necessary. */
static void __attribute__ ((unused))
free_mem (void)
@@ -787,7 +781,7 @@ free_mem (void)
service_user *olds = service;
if (service->known != NULL)
- __tdestroy (service->known, nothing);
+ __tdestroy (service->known, free);
service = service->next;
free (olds);