Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/renice Don't pass NULL as an integer argument.
details: https://anonhg.NetBSD.org/src/rev/5f2cb8e502df
branches: trunk
changeset: 553756:5f2cb8e502df
user: fvdl <fvdl%NetBSD.org@localhost>
date: Tue Oct 21 02:24:08 2003 +0000
description:
Don't pass NULL as an integer argument.
diffstat:
usr.bin/renice/renice.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 98abf5f54116 -r 5f2cb8e502df usr.bin/renice/renice.c
--- a/usr.bin/renice/renice.c Tue Oct 21 02:23:13 2003 +0000
+++ b/usr.bin/renice/renice.c Tue Oct 21 02:24:08 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: renice.c,v 1.13 2003/08/07 11:15:39 agc Exp $ */
+/* $NetBSD: renice.c,v 1.14 2003/10/21 02:24:08 fvdl Exp $ */
/*
* Copyright (c) 1983, 1989, 1993
@@ -37,7 +37,7 @@
#ifndef lint
/*static char sccsid[] = "from: @(#)renice.c 8.1 (Berkeley) 6/9/93";*/
-__RCSID("$NetBSD: renice.c,v 1.13 2003/08/07 11:15:39 agc Exp $");
+__RCSID("$NetBSD: renice.c,v 1.14 2003/10/21 02:24:08 fvdl Exp $");
#endif /* not lint */
#include <sys/resource.h>
@@ -120,7 +120,7 @@
char *ep;
errno = 0;
- v = strtol(str, &ep, NULL);
+ v = strtol(str, &ep, 0);
if (*ep) {
warnx("Bad %s argument: %s", com, str);
Home |
Main Index |
Thread Index |
Old Index