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/1de4ca825e30
branches: trunk
changeset: 340688:1de4ca825e30
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 1f9f8f3d3c45 -r 1de4ca825e30 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