[net.sources.bugs] A syntax error in nmail.c

david@ukma.UUCP (David Herron, NPR Lover) (12/24/84)

A nice program (now if only some map data would show up here....)
There was a syntax error that my C compiler barfed upon.
Following is the diff:


*** nmail.c.orig	Mon Dec 24 04:09:01 1984
--- nmail.c	Mon Dec 24 04:24:22 1984
***************
*** 41,47
  
  #include <stdio.h>
  
! #define MAILER	getenv("MAILER") == NULL ? "/bin/mail" : getenv("MAILER")
  
  #define OK	1	/* all expansions done correctly */
  #define BAD	0	/* an expansion done incorrectly */

--- 41,49 -----
  
  #include <stdio.h>
  
! extern char *getenv();
! 
! #define MAILER	(getenv("MAILER")==NULL ? "/bin/mail":getenv("MAILER"))
  
  #define OK	1	/* all expansions done correctly */
  #define BAD	0	/* an expansion done incorrectly */


--:--:--:--:--:--:--:--:--:--:--:--:--:--:--:--:--:--:--:--:--:--:--:--:-
David Herron;  ARPA-> "ukma!david"@ANL-MCS
(Try the arpa address w/ and w/o the quotes, I have had much trouble with both.)

UUCP          -:--:--:--:--:--:--:--:--:-          (follow one of these routes)

{ucbvax,unmvax,boulder,research} ! {anlams,anl-mcs} -----\  vvvvvvvvvvv
							  >-!ukma!david
   {cbosgd!hasmed,mcvax!qtlon,vax135,mddc} ! qusavx -----/  ^^^^^^^^^^^