Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/common/lib/libc/sys _cpuset_create: initialize size argument...
details: https://anonhg.NetBSD.org/src/rev/40f20ec58880
branches: trunk
changeset: 757757:40f20ec58880
user: rmind <rmind%NetBSD.org@localhost>
date: Tue Sep 21 02:03:29 2010 +0000
description:
_cpuset_create: initialize size argument for sysctl call.
>From PR/43837 by Sandy Snaman.
diffstat:
common/lib/libc/sys/cpuset.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (26 lines):
diff -r 9ec9d43714e5 -r 40f20ec58880 common/lib/libc/sys/cpuset.c
--- a/common/lib/libc/sys/cpuset.c Tue Sep 21 00:18:05 2010 +0000
+++ b/common/lib/libc/sys/cpuset.c Tue Sep 21 02:03:29 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cpuset.c,v 1.15 2009/04/25 19:38:25 rmind Exp $ */
+/* $NetBSD: cpuset.c,v 1.16 2010/09/21 02:03:29 rmind Exp $ */
/*-
* Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -32,7 +32,7 @@
#ifndef _STANDALONE
#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: cpuset.c,v 1.15 2009/04/25 19:38:25 rmind Exp $");
+__RCSID("$NetBSD: cpuset.c,v 1.16 2010/09/21 02:03:29 rmind Exp $");
#endif /* LIBC_SCCS and not lint */
#include <sys/param.h>
@@ -144,6 +144,7 @@
size_t len;
u_int nc;
+ len = sizeof(nc);
if (sysctl(mib, __arraycount(mib), &nc, &len, NULL, 0) == -1)
return NULL;
Home |
Main Index |
Thread Index |
Old Index