aboutsummaryrefslogtreecommitdiff
path: root/libc
diff options
context:
space:
mode:
authorCédric Le Goater <clg@fr.ibm.com>2015-02-24 12:14:37 +0100
committerStewart Smith <stewart@linux.vnet.ibm.com>2015-02-26 18:33:07 +1100
commitb0ae8743ce09be387e19d76c986a1296c003a4c5 (patch)
tree14a0252711889fc2ac1ae280a47d3572386fe936 /libc
parent63782490887b158e29f10d5eecc65f5da4afd14a (diff)
downloadskiboot-b0ae8743ce09be387e19d76c986a1296c003a4c5.zip
skiboot-b0ae8743ce09be387e19d76c986a1296c003a4c5.tar.gz
skiboot-b0ae8743ce09be387e19d76c986a1296c003a4c5.tar.bz2
sparse: fix Using plain integer as NULL pointer warning
Signed-off-by: Cédric Le Goater <clg@fr.ibm.com> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'libc')
-rw-r--r--libc/stdlib/strtol.c2
-rw-r--r--libc/stdlib/strtoul.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/libc/stdlib/strtol.c b/libc/stdlib/strtol.c
index e6d4da3..c7c52af 100644
--- a/libc/stdlib/strtol.c
+++ b/libc/stdlib/strtol.c
@@ -19,7 +19,7 @@ long int strtol(const char *S, char **PTR,int BASE)
short int digit;
// *PTR is S, unless PTR is NULL, in which case i override it with my own ptr
char* ptr;
- if (PTR == 0)
+ if (PTR == NULL)
{
//override
PTR = &ptr;
diff --git a/libc/stdlib/strtoul.c b/libc/stdlib/strtoul.c
index 8472668..e6e63ae 100644
--- a/libc/stdlib/strtoul.c
+++ b/libc/stdlib/strtoul.c
@@ -18,7 +18,7 @@ unsigned long int strtoul(const char *S, char **PTR,int BASE)
short int digit;
// *PTR is S, unless PTR is NULL, in which case i override it with my own ptr
char* ptr;
- if (PTR == 0)
+ if (PTR == NULL)
{
//override
PTR = &ptr;