Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libc/gen PR 51002 David Binderman: fix wrong printing co...



details:   https://anonhg.NetBSD.org/src/rev/dc4dd08d609b
branches:  trunk
changeset: 815656:dc4dd08d609b
user:      dholland <dholland%NetBSD.org@localhost>
date:      Tue May 31 03:43:10 2016 +0000

description:
PR 51002 David Binderman: fix wrong printing code not enabled by default.

diffstat:

 lib/libc/gen/getnetgrent.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (29 lines):

diff -r 9e4f0b95b8e8 -r dc4dd08d609b lib/libc/gen/getnetgrent.c
--- a/lib/libc/gen/getnetgrent.c        Tue May 31 03:34:14 2016 +0000
+++ b/lib/libc/gen/getnetgrent.c        Tue May 31 03:43:10 2016 +0000
@@ -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 @@
 #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;



Home | Main Index | Thread Index | Old Index