Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/miscfs/procfs Remove bogus len setting noted by J. Chapm...
details: https://anonhg.NetBSD.org/src/rev/f00d230b091e
branches: trunk
changeset: 574480:f00d230b091e
user: christos <christos%NetBSD.org@localhost>
date: Tue Mar 01 04:39:59 2005 +0000
description:
Remove bogus len setting noted by J. Chapman Flack.
diffstat:
sys/miscfs/procfs/procfs_linux.c | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
diffs (27 lines):
diff -r a3c9db64c626 -r f00d230b091e sys/miscfs/procfs/procfs_linux.c
--- a/sys/miscfs/procfs/procfs_linux.c Tue Mar 01 04:34:55 2005 +0000
+++ b/sys/miscfs/procfs/procfs_linux.c Tue Mar 01 04:39:59 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: procfs_linux.c,v 1.21 2005/02/27 22:29:50 christos Exp $ */
+/* $NetBSD: procfs_linux.c,v 1.22 2005/03/01 04:39:59 christos Exp $ */
/*
* Copyright (c) 2001 Wasabi Systems, Inc.
@@ -36,7 +36,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: procfs_linux.c,v 1.21 2005/02/27 22:29:50 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: procfs_linux.c,v 1.22 2005/03/01 04:39:59 christos Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -221,8 +221,6 @@
char *buf = malloc(len, M_TEMP, M_WAITOK);
int error;
-
- len = sizeof buf;
if (procfs_getcpuinfstr(buf, &len) < 0) {
error = ENOSPC;
goto done;
Home |
Main Index |
Thread Index |
Old Index