diff options
author | Fred Fish <fnf@specifix.com> | 1991-12-14 00:13:05 +0000 |
---|---|---|
committer | Fred Fish <fnf@specifix.com> | 1991-12-14 00:13:05 +0000 |
commit | 619fd1455b71e4e6089b00c85b53328ffdc8fd43 (patch) | |
tree | 16b56109ccad8b4de431d42699dda3fed23c9e9c /gdb/putenv.c | |
parent | dd1f25e0785e7e552b68b650b4219390791f8ffe (diff) | |
download | gdb-619fd1455b71e4e6089b00c85b53328ffdc8fd43.zip gdb-619fd1455b71e4e6089b00c85b53328ffdc8fd43.tar.gz gdb-619fd1455b71e4e6089b00c85b53328ffdc8fd43.tar.bz2 |
Fix miscellaneous comparisons of integer with NULL that elicit compiler
warnings about comparisons of integer with pointer when NULL is defined
as ((void *) 0) rather than just a bare 0.
Diffstat (limited to 'gdb/putenv.c')
-rw-r--r-- | gdb/putenv.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/putenv.c b/gdb/putenv.c index bf477f9..b9de9f0 100644 --- a/gdb/putenv.c +++ b/gdb/putenv.c @@ -73,7 +73,7 @@ putenv( entry ) /* Find the length of the "NAME=" */ - if ( (length=(unsigned) index(entry,'=')) == NULL ) + if ( (length=(unsigned) index(entry,'=')) == 0 ) return( -1 ); length = length - (unsigned) entry + 1; @@ -85,7 +85,7 @@ putenv( entry ) if ( strncmp( entry, *p, length ) == 0 ) { *p = entry; - return( NULL ); + return( 0 ); } @@ -105,5 +105,5 @@ putenv( entry ) environ = new_environ; - return(NULL); + return(0); } |