blob: 263df10e31b8daa9a87c4d71a52164c36fd52bed (
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.4 2002/07/08 02:21:20 kim Exp $
--- nntp.c.orig Sun Jun 16 23:26:44 2002
+++ nntp.c Sun Jul 7 21:38:22 2002
@@ -843,7 +843,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);
@@ -1170,7 +1174,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;
|