aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJim Blandy1993-04-10 08:00:27 +0000
committerJim Blandy1993-04-10 08:00:27 +0000
commit5de9f849e8f24802a873fcb16785558aca28a3e3 (patch)
treed51ddb5a02c9d470ec67debfd8204fd9e189f2c7 /src
parentcf91f754673e626b7d6fafc40305f337e814e037 (diff)
downloademacs-5de9f849e8f24802a873fcb16785558aca28a3e3.tar.gz
emacs-5de9f849e8f24802a873fcb16785558aca28a3e3.zip
* 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.
Diffstat (limited to 'src')
-rw-r--r--src/dispnew.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/dispnew.c b/src/dispnew.c
index b1f15f2ee8e..137555efb9b 100644
--- a/src/dispnew.c
+++ b/src/dispnew.c
@@ -45,8 +45,6 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
45#include "xterm.h" 45#include "xterm.h"
46#endif /* HAVE_X_WINDOWS */ 46#endif /* HAVE_X_WINDOWS */
47 47
48extern char *getenv ();
49
50#define max(a, b) ((a) > (b) ? (a) : (b)) 48#define max(a, b) ((a) > (b) ? (a) : (b))
51#define min(a, b) ((a) < (b) ? (a) : (b)) 49#define min(a, b) ((a) < (b) ? (a) : (b))
52 50
@@ -1999,9 +1997,9 @@ init_display ()
1999 if (! display_arg) 1997 if (! display_arg)
2000 { 1998 {
2001#ifdef VMS 1999#ifdef VMS
2002 display_arg = getenv ("DECW$DISPLAY"); 2000 display_arg = (getenv ("DECW$DISPLAY") != 0);
2003#else 2001#else
2004 display_arg = getenv ("DISPLAY"); 2002 display_arg = (getenv ("DISPLAY") != 0);
2005#endif 2003#endif
2006 } 2004 }
2007 2005