aboutsummaryrefslogtreecommitdiffstats
path: root/mail/metamail/files/patch-metamail__uue.c
blob: 7e99f0ae33f6e5f1679a83916735f88bced73260 (plain) (blame)
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
--- metamail/uue.c.orig	1993-07-28 18:31:02 UTC
+++ metamail/uue.c
@@ -30,7 +30,7 @@ FILE *outfp;
 }
 
 
-getline (buf, size, fp)
+get_line (buf, size, fp)
 char *buf;
 int size;
 FILE *fp;
@@ -70,28 +70,28 @@ int *ctptr;
     char buf[63];
 
     while (1) {
-	if (getline (buf, sizeof buf, infp) < 0) {
+	if (get_line (buf, sizeof buf, infp) < 0) {
 	    fprintf (stderr, "Premature EOF!\n");
-	    return;
+	    return(0);
 	}
 	if (strncmp (buf, "begin", 5) == 0)
 	    break;
 	else if (buf[0] == '-' && buf[1] == '-') {
 	    if (boundaries && PendingBoundary (buf, boundaries, ctptr))
-		return;
+		return(0);
 	}
     }	
     while (1) {
-	if (getline (buf, sizeof buf, infp) < 0) {
+	if (get_line (buf, sizeof buf, infp) < 0) {
 	    fprintf (stderr, "Premature EOF!\n");
-	    return;
+	    return(0);
 	}
 	else if (strncmp (buf, "end", 5) == 0)
 	    break;
 	else if (buf[0] == '-' && buf[1] == '-') {
 	    if (boundaries && PendingBoundary (buf, boundaries, ctptr)) {
 		fprintf (stderr, "premature end of x-uue body part\n");
-		return;
+		return(0);
 	    }
 	    else {
 		fprintf (stderr, "ignoring invalid boundary marker\n");