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...



details:   https://anonhg.NetBSD.org/src/rev/4c83b99d97c0
branches:  trunk
changeset: 318843:4c83b99d97c0
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 ae54f8504f46 -r 4c83b99d97c0 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