Source-Changes-HG archive

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

[src/trunk]: src/usr.sbin/rpc.pcnfsd Use pclose() after popen(). Found by cpp...



details:   https://anonhg.NetBSD.org/src/rev/41dac13a41f9
branches:  trunk
changeset: 760402:41dac13a41f9
user:      wiz <wiz%NetBSD.org@localhost>
date:      Tue Jan 04 10:05:55 2011 +0000

description:
Use pclose() after popen(). Found by cppcheck.

diffstat:

 usr.sbin/rpc.pcnfsd/pcnfsd_print.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r d716330d3329 -r 41dac13a41f9 usr.sbin/rpc.pcnfsd/pcnfsd_print.c
--- a/usr.sbin/rpc.pcnfsd/pcnfsd_print.c        Tue Jan 04 10:01:51 2011 +0000
+++ b/usr.sbin/rpc.pcnfsd/pcnfsd_print.c        Tue Jan 04 10:05:55 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pcnfsd_print.c,v 1.10 2009/08/07 13:55:22 wiz Exp $    */
+/*     $NetBSD: pcnfsd_print.c,v 1.11 2011/01/04 10:05:55 wiz Exp $    */
 
 /* RE_SID: @(%)/usr/dosnfs/shades_SCCS/unix/pcnfsd/v2/src/SCCS/s.pcnfsd_print.c 1.7 92/01/24 19:58:58 SMI */
 /*
@@ -573,7 +573,7 @@
                last = curr;
 
        }
-       (void) fclose(p);
+       (void) pclose(p);
 
        /*
         ** Now add on the virtual printers, if any



Home | Main Index | Thread Index | Old Index