lkml.org 
[lkml]   [1998]   [Nov]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Subject2.1.128pre1 patch: Strange use of simple_strtol() in init/main.c
Date
From
The patch says:

diff -u --recursive --new-file v2.1.127/linux/init/main.c linux/init/main.c
--- v2.1.127/linux/init/main.c Sun Nov 8 14:03:12 1998
+++ linux/init/main.c Sun Nov 8 14:06:18 1998
@@ -377,7 +377,7 @@
int i=1;

while (cur && isdigit(*cur) && i <= 10) {
- ints[i++] = simple_strtoul(cur,NULL,0);
+ ints[i++] = simple_strtol(cur,NULL,0);
if ((cur = strchr(cur,',')) != NULL)
cur++;
}
i.e., change simple_strtoul() for simple_strtol(). The later considers
negative numbers, which is supposed to be the reason for the patch; but the
while loop doesn't consider a '-' sign part of a number?!
--
Horst von Brand vonbrand@sleipnir.valparaiso.cl
Casilla 9G, Viña del Mar, Chile +56 32 672616


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:45    [W:0.042 / U:0.256 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site