Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/gen cast for size_t
details: https://anonhg.NetBSD.org/src/rev/bd04f4dfae24
branches: trunk
changeset: 350348:bd04f4dfae24
user: christos <christos%NetBSD.org@localhost>
date: Tue Jan 10 17:45:58 2017 +0000
description:
cast for size_t
diffstat:
lib/libc/gen/asysctl.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 234991151666 -r bd04f4dfae24 lib/libc/gen/asysctl.c
--- a/lib/libc/gen/asysctl.c Tue Jan 10 17:45:27 2017 +0000
+++ b/lib/libc/gen/asysctl.c Tue Jan 10 17:45:58 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: asysctl.c,v 1.1 2014/06/13 15:45:05 joerg Exp $ */
+/* $NetBSD: asysctl.c,v 1.2 2017/01/10 17:45:58 christos Exp $ */
/*-
* Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: asysctl.c,v 1.1 2014/06/13 15:45:05 joerg Exp $");
+__RCSID("$NetBSD: asysctl.c,v 1.2 2017/01/10 17:45:58 christos Exp $");
#include "namespace.h"
#include <sys/sysctl.h>
@@ -50,7 +50,7 @@
data = NULL;
for (;;) {
- if (sysctl(oids, oidlen, data, len, NULL, 0) == 0) {
+ if (sysctl(oids, (u_int)oidlen, data, len, NULL, 0) == 0) {
if (*len == 0) {
free(data);
return NULL;
Home |
Main Index |
Thread Index |
Old Index