From b0ae8743ce09be387e19d76c986a1296c003a4c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Le=20Goater?= Date: Tue, 24 Feb 2015 12:14:37 +0100 Subject: sparse: fix Using plain integer as NULL pointer warning MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Cédric Le Goater Signed-off-by: Stewart Smith --- libc/stdlib/strtol.c | 2 +- libc/stdlib/strtoul.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'libc') 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; -- cgit v1.1