From 1483b7537883c00276b91f8c35496594edd5b073 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Fri, 14 May 1999 21:30:22 +0000 Subject: Update. 1999-05-14 Mark Kettenis * sysdeps/generic/getutmp.c: Include (getutmp): Rewrite to only copy those members that are really present in `struct utmp'. * sysdeps/generic/getutmpx.c: Likewise. --- nss/nsswitch.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'nss/nsswitch.c') 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); -- cgit v1.2.3