aboutsummaryrefslogtreecommitdiff
path: root/nss/nsswitch.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1999-05-14 21:30:22 +0000
committerUlrich Drepper <drepper@redhat.com>1999-05-14 21:30:22 +0000
commit1483b7537883c00276b91f8c35496594edd5b073 (patch)
tree2fa8096ac53daa0d1c3f837a0aefc466ebfc033f /nss/nsswitch.c
parentd60d215c57261eb35e540fa13c04f6dc0957c476 (diff)
downloadglibc-1483b7537883c00276b91f8c35496594edd5b073.tar
glibc-1483b7537883c00276b91f8c35496594edd5b073.tar.gz
glibc-1483b7537883c00276b91f8c35496594edd5b073.tar.bz2
glibc-1483b7537883c00276b91f8c35496594edd5b073.zip
Update.
1999-05-14 Mark Kettenis <kettenis@gnu.org> * sysdeps/generic/getutmp.c: Include <string.h> (getutmp): Rewrite to only copy those members that are really present in `struct utmp'. * sysdeps/generic/getutmpx.c: Likewise.
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);