Module Name:    src
Committed By:   christos
Date:           Tue Jan 10 17:45:58 UTC 2017

Modified Files:
        src/lib/libc/gen: asysctl.c

Log Message:
cast for size_t


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/lib/libc/gen/asysctl.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/libc/gen/asysctl.c
diff -u src/lib/libc/gen/asysctl.c:1.1 src/lib/libc/gen/asysctl.c:1.2
--- src/lib/libc/gen/asysctl.c:1.1	Fri Jun 13 11:45:05 2014
+++ src/lib/libc/gen/asysctl.c	Tue Jan 10 12:45:58 2017
@@ -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 @@ asysctl(const int *oids, size_t oidlen, 
 	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;

Reply via email to