summaryrefslogtreecommitdiff
path: root/news/nn/patches/patch-ax
blob: f54911163fa75ca23759a586510a7e917a741f3e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
$NetBSD: patch-ax,v 1.3 1999/08/22 22:55:46 kim Exp $

--- nntp.c.orig	Wed Jun  9 14:18:25 1999
+++ nntp.c	Sun Aug 22 18:14:18 1999
@@ -769,7 +769,7 @@
     strncpy(host, (gethostbyname(host))->h_name, sizeof host);
 
     server_real_name = (gethostbyname(nntp_server))->h_name;
-    use_nntp = (strcmp(host, server_real_name) != 0);
+    use_nntp = 1;
 
     if (use_nntp) {
 	freeobj(news_active);
@@ -1108,7 +1108,7 @@
 
      case OK_BODY:
 	tmp = open_file(cptr->file_name, OPEN_APPEND|MUST_EXIST);
-	fseek(tmp, (off_t)0, 2);
+	fseek(tmp, (long)0, 2);
 	if (copy_text(tmp) < 0)
 	    return NULL;
 	if (fclose(tmp) == EOF) goto err;