changeset 2511:4fc5338ebb8f

* 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.
author Jim Blandy <jimb@redhat.com>
date Sat, 10 Apr 1993 08:00:27 +0000
parents e604df2fc029
children 2a13ec10bfd7
files src/dispnew.c
diffstat 1 files changed, 2 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- 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
     }