Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libutil The last argument to sysctl is a size_t, not a p...
details: https://anonhg.NetBSD.org/src/rev/66d3a91491e1
branches: trunk
changeset: 553730:66d3a91491e1
user: fvdl <fvdl%NetBSD.org@localhost>
date: Tue Oct 21 00:47:46 2003 +0000
description:
The last argument to sysctl is a size_t, not a pointer; don't pass NULL.
diffstat:
lib/libutil/getbootfile.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 269cbc71f094 -r 66d3a91491e1 lib/libutil/getbootfile.c
--- a/lib/libutil/getbootfile.c Tue Oct 21 00:46:09 2003 +0000
+++ b/lib/libutil/getbootfile.c Tue Oct 21 00:47:46 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: getbootfile.c,v 1.3 2003/02/14 04:03:27 petrov Exp $ */
+/* $NetBSD: getbootfile.c,v 1.4 2003/10/21 00:47:46 fvdl Exp $ */
/*-
* Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -38,7 +38,7 @@
#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: getbootfile.c,v 1.3 2003/02/14 04:03:27 petrov Exp $");
+__RCSID("$NetBSD: getbootfile.c,v 1.4 2003/10/21 00:47:46 fvdl Exp $");
#endif
#include <sys/param.h>
@@ -67,7 +67,7 @@
mib[0] = CTL_MACHDEP;
mib[1] = CPU_BOOTED_KERNEL;
size = sizeof(name) - 1;
- if (sysctl(mib, 2, name + 1, &size, NULL, NULL) == 0) {
+ if (sysctl(mib, 2, name + 1, &size, NULL, 0) == 0) {
/*
* traditionally, this sysctl returns the relative
* path of the kernel with the leading slash stripped
Home |
Main Index |
Thread Index |
Old Index