pkgsrc/news/nntpclnt/patches/patch-aa

23 lines
574 B
Text

$NetBSD: patch-aa,v 1.5 2005/04/01 03:32:07 kim Exp $
--- uname.c.orig 1994-08-11 17:37:53.000000000 -0400
+++ uname.c 2005-03-31 22:30:11.000000000 -0500
@@ -16,4 +16,5 @@
#include <stdio.h>
+#include <strings.h>
#include "config.h"
@@ -67,5 +68,5 @@
{
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",
@@ -74,5 +75,4 @@
} else {
fgets(uptr, 256, uucpf);
- fclose(tmpfp);
}
p = index(uptr, '\n');