summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMoritz Jodeit <moritz@cvs.openbsd.org>2007-09-05 08:12:16 +0000
committerMoritz Jodeit <moritz@cvs.openbsd.org>2007-09-05 08:12:16 +0000
commitb774198ec751ffa1f4a79ba09b955577f3da58b0 (patch)
treeee79c7acce06a874cf100e026188fc4006036ef8 /lib
parentfa9b0e2b38f9fea0fc4016522d711b3a9c329ad3 (diff)
Fix debugging code, which tried to print the netgroup name
using the return value of _ng_print(), which returns void. ok millert@
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/gen/getnetgrent.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc/gen/getnetgrent.c b/lib/libc/gen/getnetgrent.c
index 937ce158d1e..c6556d95879 100644
--- a/lib/libc/gen/getnetgrent.c
+++ b/lib/libc/gen/getnetgrent.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: getnetgrent.c,v 1.19 2007/09/02 15:19:16 deraadt Exp $ */
+/* $OpenBSD: getnetgrent.c,v 1.20 2007/09/05 08:12:15 moritz Exp $ */
/*
* Copyright (c) 1994 Christos Zoulas
@@ -217,8 +217,8 @@ getnetgroup(char **pp)
#ifdef DEBUG_NG
{
char buf[1024];
- (void) fprintf(stderr, "netgroup %s\n",
- _ng_print(buf, sizeof(buf), ng));
+ _ng_print(buf, sizeof(buf), ng);
+ fprintf(stderr, "netgroup %s\n", buf);
}
#endif
return ng;