summaryrefslogtreecommitdiff
path: root/www/publicfile/files/patch-fetch.c
blob: 9193103aed5a2f41eeb04736ab37f6e8a3c0c976 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- fetch.c.orig	1999-11-08 23:23:46.000000000 -0800
+++ fetch.c	2014-01-29 15:19:43.000000000 -0800
@@ -82,7 +82,7 @@
   substdio_puts(&ss,"\r\n");
 }
 
-static int doit(char *fn,int fddata,int fdfile,int how)
+static void doit(char *fn,int fddata,int fdfile,int how)
 {
   DIR *dir;
   direntry *d;
@@ -122,7 +122,7 @@
       for (;;) {
 	r = read(fdfile,inbuf,sizeof inbuf);
 	if (r == -1) {
-	  if (errno = error_intr) continue;
+	  if (errno == error_intr) continue;
 	  _exit(23);
 	}
 	if (r == 0)