Source-Changes-HG archive

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

[src/trunk]: src/sbin/cgdconfig Fix usage for rump. Fixes test breakage cau...



details:   https://anonhg.NetBSD.org/src/rev/9938810231e4
branches:  trunk
changeset: 361662:9938810231e4
user:      kre <kre%NetBSD.org@localhost>
date:      Sun May 06 20:55:42 2018 +0000

description:
Fix usage for rump.   Fixes test breakage caused by previous commit.

diffstat:

 sbin/cgdconfig/cgdconfig.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (31 lines):

diff -r c7e5f5bd16d6 -r 9938810231e4 sbin/cgdconfig/cgdconfig.c
--- a/sbin/cgdconfig/cgdconfig.c        Sun May 06 19:16:36 2018 +0000
+++ b/sbin/cgdconfig/cgdconfig.c        Sun May 06 20:55:42 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cgdconfig.c,v 1.42 2018/05/05 11:28:44 kre Exp $ */
+/* $NetBSD: cgdconfig.c,v 1.43 2018/05/06 20:55:42 kre Exp $ */
 
 /*-
  * Copyright (c) 2002, 2003 The NetBSD Foundation, Inc.
@@ -33,7 +33,7 @@
 #ifndef lint
 __COPYRIGHT("@(#) Copyright (c) 2002, 2003\
  The NetBSD Foundation, Inc.  All rights reserved.");
-__RCSID("$NetBSD: cgdconfig.c,v 1.42 2018/05/05 11:28:44 kre Exp $");
+__RCSID("$NetBSD: cgdconfig.c,v 1.43 2018/05/06 20:55:42 kre Exp $");
 #endif
 
 #include <err.h>
@@ -523,10 +523,10 @@
                cgu.cgu_unit = -1;
                if (prog_ioctl(fd, CGDIOCGET, &cgu) != -1 && cgu.cgu_dev != 0) {
                        warnx("device %s already in use", *argv);
-                       close(fd);
+                       prog_close(fd);
                        return -1;
                }
-               close(fd);
+               prog_close(fd);
        }
 
        if (argc == 2 || argc == 3) {



Home | Main Index | Thread Index | Old Index