summaryrefslogtreecommitdiff
path: root/mail/ja-mh/patches/patch-ay
blob: 4ffb9c3a28b304d5b4ffc5aad6f6409e16c21ca9 (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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
$NetBSD: patch-ay,v 1.3 2013/03/28 21:31:25 joerg Exp $

* Don't declare errno.

--- uip/mhn.c.orig	2001-08-30 02:57:33.000000000 +0000
+++ uip/mhn.c
@@ -219,7 +219,6 @@ static	char   *errs = NULL;
 static	char   *tmp;
 
 
-extern	int	errno;
 #if !defined(BSD44) && !defined(__GNU_LIBRARY__)
 extern	int	sys_nerr;
 extern	char   *sys_errlist[];
@@ -342,7 +341,7 @@ typedef struct Content {
 
 static CT	get_content ();
 static int	list_content (), show_content (), store_content ();
-static int	cache_content ();
+static void cache_content (CT ct);
 static int	user_content (), compose_content (), output_content ();
 static void	free_content (), flush_errors (), set_id ();
 
@@ -3190,8 +3189,7 @@ static struct k2v	Charset[] = {
     NULL,	    CHARSET_UNKNOWN		/* this one must be last! */
 };
 
-static int  free_text (ct)
-register CT	ct;
+static void free_text (CT ct)
 {
     register struct text *t = (struct text *) ct -> c_ctparams;
 
@@ -3678,8 +3676,7 @@ char   *unused;
 }
 
 
-static int  free_multi (ct)
-register CT	ct;
+static void free_multi (CT ct)
 {
     register struct multipart *m = (struct multipart *) ct -> c_ctparams;
     register struct part   *part,
@@ -4095,8 +4092,7 @@ losing: ;
 }
 
 
-static int  free_partial (ct)
-register CT	ct;
+static void free_partial (CT ct)
 {
     register struct partial *p = (struct partial *) ct -> c_ctparams;
 
@@ -4301,8 +4297,7 @@ register CT	ct;
 }
 
 
-static int  free_external (ct)
-register CT	ct;
+static void free_external (CT ct)
 {
     register struct exbody *e = (struct exbody *) ct -> c_ctparams;
 
@@ -4699,8 +4694,7 @@ register CT	ct;
 }
 
 
-static int  close_encoding (ct)
-register CT	ct;
+static void close_encoding (CT ct)
 {
     register struct cefile *ce = (struct cefile *) ct -> c_ceparams;
 
@@ -4750,9 +4744,7 @@ estimate: ;
 }
 
 
-static int  free_encoding (ct, toplevel)
-register CT	ct;
-int	toplevel;
+static void free_encoding (CT ct, int toplevel)
 {
     register struct cefile *ce = (struct cefile *) ct -> c_ceparams;
 
@@ -6152,8 +6144,7 @@ char   *mapfile,
 
 /*  */
 
-static int  cache_content (ct)
-register CT    ct;
+static void cache_content (CT ct)
 {
     int	    cachetype;
     char   *file,