summaryrefslogtreecommitdiff
path: root/news/nn/patches/patch-ax
blob: cafeafec22dcdf5c9d31bbcc92cfbf9908fd9ca0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
$NetBSD: patch-ax,v 1.5 2005/04/11 11:05:47 schwarz Exp $

--- nntp.c.orig	Sat Jan 25 07:10:39 2003
+++ nntp.c	Fri Apr  8 22:23:05 2005
@@ -832,7 +832,11 @@
 	server_real_name = hp->h_name;
     else
 	nn_exitmsg(1, "NNTPSERVER is invalid");
+#if 0
     use_nntp = (strcmp(host_name, server_real_name) != 0);
+#else
+    use_nntp = 1;
+#endif
 
     if (use_nntp) {
 	freeobj(news_active);
@@ -1159,7 +1163,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;