# HG changeset patch # User Jim Blandy # Date 734428827 0 # Node ID 4fc5338ebb8fd9fd2eeffa1a443a7a7e14305ab0 # Parent e604df2fc02910aed924e910313349e3a92729a3 * dispnew.c (getenv): Extern declaration deleted; this is done in config.h. * dispnew.c (init_display): Compare the return value of getenv to zero before setting display_arg, instead of just using the pointer as a truth value. diff -r e604df2fc029 -r 4fc5338ebb8f src/dispnew.c --- a/src/dispnew.c Sat Apr 10 07:59:02 1993 +0000 +++ b/src/dispnew.c Sat Apr 10 08:00:27 1993 +0000 @@ -45,8 +45,6 @@ #include "xterm.h" #endif /* HAVE_X_WINDOWS */ -extern char *getenv (); - #define max(a, b) ((a) > (b) ? (a) : (b)) #define min(a, b) ((a) < (b) ? (a) : (b)) @@ -1999,9 +1997,9 @@ if (! display_arg) { #ifdef VMS - display_arg = getenv ("DECW$DISPLAY"); + display_arg = (getenv ("DECW$DISPLAY") != 0); #else - display_arg = getenv ("DISPLAY"); + display_arg = (getenv ("DISPLAY") != 0); #endif }