aboutsummaryrefslogtreecommitdiff
path: root/src/include/stdlib.h
diff options
context:
space:
mode:
authorMichael Brown <mcb30@ipxe.org>2012-04-17 10:15:29 +0100
committerMichael Brown <mcb30@ipxe.org>2012-04-17 10:42:08 +0100
commit1d33649516f2046e9fe692d42fffeeec96a2b858 (patch)
treef48462239a4cd88f506b8613cb0c05d885735fcf /src/include/stdlib.h
parentd11b82f0e401ca6499e590fa348c8dbd67bc1d40 (diff)
downloadipxe-1d33649516f2046e9fe692d42fffeeec96a2b858.zip
ipxe-1d33649516f2046e9fe692d42fffeeec96a2b858.tar.gz
ipxe-1d33649516f2046e9fe692d42fffeeec96a2b858.tar.bz2
[libc] Allow strtoul() to interpret negative numbers
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include/stdlib.h')
-rw-r--r--src/include/stdlib.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/include/stdlib.h b/src/include/stdlib.h
index 19a7c8e..3d30858 100644
--- a/src/include/stdlib.h
+++ b/src/include/stdlib.h
@@ -5,7 +5,6 @@ FILE_LICENCE ( GPL2_OR_LATER );
#include <stdint.h>
#include <assert.h>
-#include <ctype.h>
/*****************************************************************************
*
@@ -18,9 +17,6 @@ static inline int strtoul_base ( const char **pp, int base )
{
const char *p = *pp;
- while ( isspace ( *p ) )
- p++;
-
if ( base == 0 ) {
base = 10;
if ( *p == '0' ) {