summaryrefslogtreecommitdiffstats
path: root/src/include/stdlib.h
diff options
context:
space:
mode:
authorMichael Brown2012-04-17 11:15:29 +0200
committerMichael Brown2012-04-17 11:42:08 +0200
commit1d33649516f2046e9fe692d42fffeeec96a2b858 (patch)
treef48462239a4cd88f506b8613cb0c05d885735fcf /src/include/stdlib.h
parent[multiboot] Include full image URI in command line (diff)
downloadipxe-1d33649516f2046e9fe692d42fffeeec96a2b858.tar.gz
ipxe-1d33649516f2046e9fe692d42fffeeec96a2b858.tar.xz
ipxe-1d33649516f2046e9fe692d42fffeeec96a2b858.zip
[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 19a7c8e0..3d30858f 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' ) {