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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
|
$NetBSD: patch-ba,v 1.3 2013/03/28 21:31:25 joerg Exp $
* Don't declare errno.
--- uip/mshcmds.c.orig 2001-04-02 16:40:58.000000000 +0000
+++ uip/mshcmds.c
@@ -28,10 +28,9 @@ static char ident[] = "@(#)$Id: mshcmds.
#endif /* MIME */
/* */
+void readids (int id);
+void display_info (int scansw);
-extern int errno;
-
- /* BURST */
static char delim3[] = "-------";/* from burst.c */
@@ -47,7 +46,9 @@ static int nontext();
#endif
-static burst(), forw(), rmm(), show(), ask(), copy_message(), copy_digest();
+static burst(), show(), ask(), copy_message(), copy_digest();
+static void rmm(void);
+static void forw (char *proc, char *filter, int vecp, char **vec, int mime);
static int process();
/* SORTM */
static int msgsort (), subsort();
@@ -66,9 +67,7 @@ extern char response[];
/* */
-forkcmd (args, pgm)
-char **args,
- *pgm;
+void forkcmd (char **args, char *pgm)
{
int child_id;
char *vec[MAXARGS];
@@ -143,8 +142,7 @@ static struct swit distswit[] = {
/* */
-distcmd (args)
-char **args;
+void distcmd (char **args)
{
int vecp = 1;
char *cp,
@@ -249,8 +247,7 @@ static struct swit explswit[] = {
/* */
-explcmd (args)
-char **args;
+void explcmd (char **args)
{
int inplace = 0,
quietsw = 0,
@@ -498,8 +495,7 @@ static struct swit fileswit[] = {
/* */
-filecmd (args)
-char **args;
+void filecmd (char **args)
{
int linksw = 0,
msgp = 0,
@@ -675,8 +671,7 @@ static struct swit foldswit[] = {
/* */
-foldcmd (args)
-char **args;
+void foldcmd (char **args)
{
int fastsw = 0,
headersw = 0,
@@ -906,8 +901,7 @@ static struct swit forwswit[] = {
/* */
-forwcmd (args)
-char **args;
+void forwcmd (char **args)
{
int msgp = 0,
vecp = 1,
@@ -1028,12 +1022,7 @@ char **args;
/* */
-static forw (proc, filter, vecp, vec, mime)
-int vecp,
- mime;
-char *proc,
- *filter,
- **vec;
+static void forw (char *proc, char *filter, int vecp, char **vec, int mime)
{
int i,
child_id,
@@ -1364,8 +1353,7 @@ static struct swit markswit[] = {
/* */
-markcmd (args)
-char **args;
+void markcmd (char **args)
{
int addsw = 0,
deletesw = 0,
@@ -1617,8 +1605,7 @@ static struct swit mhnswit[] = {
/* */
-mhncmd (args)
-char **args;
+void mhncmd (char **args)
{
int msgp = 0,
vecp = 1,
@@ -1733,8 +1720,7 @@ static struct swit packswit[] = {
/* */
-packcmd (args)
-char **args;
+void packcmd (char **args)
{
int msgp = 0,
md,
@@ -1923,8 +1909,7 @@ static struct swit pickswit[] = {
/* */
-pickcmd (args)
-char **args;
+void pickcmd (char **args)
{
int zerosw = 1,
msgp = 0,
@@ -2126,8 +2111,7 @@ static struct swit replswit[] = {
/* */
-replcmd (args)
-char **args;
+void replcmd (char **args)
{
int vecp = 1;
char *cp,
@@ -2227,8 +2211,7 @@ static struct swit rmmswit[] = {
/* */
-rmmcmd (args)
-char **args;
+void rmmcmd (char **args)
{
int msgp = 0,
msgnum;
@@ -2275,7 +2258,7 @@ struct msgs *opntrashf ();
struct msgs *trash ();
#endif /* MH_PLUS */
-static rmm () {
+static void rmm (void) {
register int msgnum,
vecp;
register char *cp;
@@ -2503,8 +2486,7 @@ static struct swit scanswit[] = {
/* */
-scancmd (args)
-char **args;
+void scancmd (char **args)
{
#define equiv(a,b) (a ? b && !strcmp (a, b) : !b)
@@ -2765,8 +2747,7 @@ static struct swit showswit[] = {
/* */
-showcmd (args)
-char **args;
+void showcmd (char **args)
{
int headersw = 1,
nshow = 0,
@@ -3236,8 +3217,7 @@ static struct swit sortswit[] = {
/* */
-sortcmd (args)
-char **args;
+void sortcmd (char **args)
{
int msgp = 0,
msgnum;
@@ -3529,7 +3509,6 @@ char *proc,
(void) strcpy (tmpfil, m_scratch ("", invo_name));
if ((out = fopen (tmpfil, "w")) == NULL) {
int olderr;
- extern int errno;
char newfil[80];
olderr = errno;
|