Source-Changes-HG archive

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

[src/trunk]: src/lib/libutil Hello lint.



details:   https://anonhg.NetBSD.org/src/rev/8f273d01e010
branches:  trunk
changeset: 810830:8f273d01e010
user:      christos <christos%NetBSD.org@localhost>
date:      Thu Sep 24 15:30:39 2015 +0000

description:
Hello lint.

diffstat:

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

diffs (30 lines):

diff -r cfa36daa88c5 -r 8f273d01e010 lib/libutil/kinfo_getvmmap.c
--- a/lib/libutil/kinfo_getvmmap.c      Thu Sep 24 14:58:19 2015 +0000
+++ b/lib/libutil/kinfo_getvmmap.c      Thu Sep 24 15:30:39 2015 +0000
@@ -2,7 +2,7 @@
 #ifdef __FBSDID
 __FBSDID("$FreeBSD: head/lib/libutil/kinfo_getvmmap.c 186512 2008-12-27 11:12:23Z rwatson $");
 #endif
-__RCSID("$NetBSD: kinfo_getvmmap.c,v 1.1 2015/09/24 14:39:20 christos Exp $");
+__RCSID("$NetBSD: kinfo_getvmmap.c,v 1.2 2015/09/24 15:30:39 christos Exp $");
 
 #include <sys/param.h>
 #include <sys/user.h>
@@ -27,7 +27,7 @@
        mib[3] = pid;
        mib[4] = sizeof(*kiv);
 
-       error = sysctl(mib, __arraycount(mib), NULL, &len, NULL, 0);
+       error = sysctl(mib, (u_int)__arraycount(mib), NULL, &len, NULL, 0);
        if (error)
                return NULL;
 
@@ -37,7 +37,7 @@
        if (kiv == NULL)
                return NULL;
 
-       error = sysctl(mib, __arraycount(mib), kiv, &len, NULL, 0);
+       error = sysctl(mib, (u_int)__arraycount(mib), kiv, &len, NULL, 0);
        if (error) {
                free(kiv);
                return NULL;



Home | Main Index | Thread Index | Old Index