Module Name: src
Committed By: christos
Date: Sat Oct 6 23:48:00 UTC 2018
Modified Files:
src/lib/libutil: getfsspecname.c
Log Message:
use the right type.
To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/lib/libutil/getfsspecname.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/lib/libutil/getfsspecname.c
diff -u src/lib/libutil/getfsspecname.c:1.6 src/lib/libutil/getfsspecname.c:1.7
--- src/lib/libutil/getfsspecname.c:1.6 Sat Oct 6 09:09:53 2018
+++ src/lib/libutil/getfsspecname.c Sat Oct 6 19:48:00 2018
@@ -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 @@ getfsspecname(char *buf, size_t bufsiz,
*/
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;