diff options
Diffstat (limited to 'news/nntpclnt/patches/patch-aa')
-rw-r--r-- | news/nntpclnt/patches/patch-aa | 60 |
1 files changed, 27 insertions, 33 deletions
diff --git a/news/nntpclnt/patches/patch-aa b/news/nntpclnt/patches/patch-aa index 49d854365c6..e702e8a4236 100644 --- a/news/nntpclnt/patches/patch-aa +++ b/news/nntpclnt/patches/patch-aa @@ -1,34 +1,28 @@ -$NetBSD: patch-aa,v 1.2 1998/08/07 11:11:12 agc Exp $ +$NetBSD: patch-aa,v 1.3 2002/09/18 06:28:06 tron Exp $ -*** uname.c.orig Wed Mar 25 11:12:00 1998 ---- uname.c Wed Mar 25 13:51:09 1998 -*************** -*** 66,79 **** - char *uptr; - { - FILE * uucpf; -! char * hostname; - if ((uucpf = fopen(HOSTFILE,"r")) == NULL) { - fprintf(stderr,"Couldn't open %s to determine hostname. Contact your system administrator.\n", - HOSTFILE); - exit(1); - } else { - fgets(uptr, 256, uucpf); -- fclose(tmpfp); - } - p = index(uptr, '\n'); - if (p) ---- 66,78 ---- - char *uptr; - { - FILE * uucpf; -! char * p; - if ((uucpf = fopen(HOSTFILE,"r")) == NULL) { - fprintf(stderr,"Couldn't open %s to determine hostname. Contact your system administrator.\n", - HOSTFILE); - exit(1); - } else { - fgets(uptr, 256, uucpf); - } - p = index(uptr, '\n'); - if (p) +--- uname.c.orig Thu Aug 11 23:37:53 1994 ++++ uname.c Wed Sep 18 08:26:34 2002 +@@ -16,6 +16,7 @@ + + #include <stdio.h> + #include "config.h" ++#include <strings.h> + + #ifdef DOUNAME + # define DONE +@@ -66,14 +67,13 @@ + char *uptr; + { + FILE * uucpf; +- char * hostname; ++ char * p; + if ((uucpf = fopen(HOSTFILE,"r")) == NULL) { + fprintf(stderr,"Couldn't open %s to determine hostname. Contact your system administrator.\n", + HOSTFILE); + exit(1); + } else { + fgets(uptr, 256, uucpf); +- fclose(tmpfp); + } + p = index(uptr, '\n'); + if (p) |