Source-Changes-HG archive

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

[src/trunk]: src/lib/libutil use the right type.



details:   https://anonhg.NetBSD.org/src/rev/1b61c4667be9
branches:  trunk
changeset: 993884:1b61c4667be9
user:      christos <christos%NetBSD.org@localhost>
date:      Sat Oct 06 23:48:00 2018 +0000

description:
use the right type.

diffstat:

 lib/libutil/getfsspecname.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 46c5bf18a8f2 -r 1b61c4667be9 lib/libutil/getfsspecname.c
--- a/lib/libutil/getfsspecname.c       Sat Oct 06 18:52:59 2018 +0000
+++ b/lib/libutil/getfsspecname.c       Sat Oct 06 23:48:00 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: getfsspecname.c,v 1.6 2018/10/06 13:09:53 jmcneill Exp $       */
+/*     $NetBSD: getfsspecname.c,v 1.7 2018/10/06 23:48:00 christos Exp $       */
 
 /*-
  * Copyright (c) 2012 The NetBSD Foundation, Inc.
@@ -29,7 +29,7 @@
  * POSSIBILITY OF SUCH DAMAGE.
  */
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: getfsspecname.c,v 1.6 2018/10/06 13:09:53 jmcneill Exp $");
+__RCSID("$NetBSD: getfsspecname.c,v 1.7 2018/10/06 23:48:00 christos Exp $");
 
 #include <sys/types.h>
 #include <sys/ioctl.h>
@@ -68,7 +68,7 @@
         */
        if (strncasecmp(name, "ROOT.", 5) == 0 && strchr(name, ':') == NULL) {
                static const int mib_root[] = { CTL_KERN, KERN_ROOT_DEVICE };
-               static const int mib_rootlen = __arraycount(mib_root);
+               static const unsigned int mib_rootlen = __arraycount(mib_root);
 
                strlcpy(buf, "/dev/", bufsiz);
                len = bufsiz - 5;



Home | Main Index | Thread Index | Old Index