From 619fd1455b71e4e6089b00c85b53328ffdc8fd43 Mon Sep 17 00:00:00 2001 From: Fred Fish Date: Sat, 14 Dec 1991 00:13:05 +0000 Subject: 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. --- gdb/putenv.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gdb/putenv.c') 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); } -- cgit v1.1