Module Name: src Committed By: dholland Date: Tue May 31 03:43:10 UTC 2016
Modified Files: src/lib/libc/gen: getnetgrent.c Log Message: PR 51002 David Binderman: fix wrong printing code not enabled by default. To generate a diff of this commit: cvs rdiff -u -r1.42 -r1.43 src/lib/libc/gen/getnetgrent.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/lib/libc/gen/getnetgrent.c diff -u src/lib/libc/gen/getnetgrent.c:1.42 src/lib/libc/gen/getnetgrent.c:1.43 --- src/lib/libc/gen/getnetgrent.c:1.42 Tue Mar 20 16:36:05 2012 +++ src/lib/libc/gen/getnetgrent.c Tue May 31 03:43:10 2016 @@ -1,4 +1,4 @@ -/* $NetBSD: getnetgrent.c,v 1.42 2012/03/20 16:36:05 matt Exp $ */ +/* $NetBSD: getnetgrent.c,v 1.43 2016/05/31 03:43:10 dholland Exp $ */ /* * Copyright (c) 1994 Christos Zoulas @@ -28,7 +28,7 @@ #include <sys/cdefs.h> #if defined(LIBC_SCCS) && !defined(lint) -__RCSID("$NetBSD: getnetgrent.c,v 1.42 2012/03/20 16:36:05 matt Exp $"); +__RCSID("$NetBSD: getnetgrent.c,v 1.43 2016/05/31 03:43:10 dholland Exp $"); #endif /* LIBC_SCCS and not lint */ #include "namespace.h" @@ -166,8 +166,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); + (void) fprintf(stderr, "netgroup %s\n", buf); } #endif return ng;