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
|
$NetBSD: patch-uip_msh.c,v 1.1 2013/03/28 21:31:26 joerg Exp $
--- uip/msh.c.orig 2013-03-28 18:19:47.000000000 +0000
+++ uip/msh.c
@@ -181,6 +181,23 @@ jmp_buf sigenv; /* the environment poi
static TYPESIG intrser (), pipeser (), quitser ();
+void readids (int id);
+void display_info (int scansw);
+void filecmd (char **args);
+void foldcmd (char **args);
+void explcmd (char **args);
+void forwcmd (char **args);
+void markcmd (char **args);
+void mhncmd (char **args);
+void packcmd (char **args);
+void distcmd (char **args);
+void pickcmd (char **args);
+void replcmd (char **args);
+void showcmd (char **args);
+void scancmd (char **args);
+void rmmcmd (char **args);
+void sortcmd (char **args);
+void forkcmd (char **args, char *pgm);
#ifndef __STDC__
#ifdef SYS5
@@ -189,10 +206,14 @@ struct passwd *getpwnam ();
#endif
static int read_map(), read_file(), check_folder(), getargs(), parse();
-static int getcmds(), init_io(), initaux_io(), finaux_io(), peerwait();
+static int getcmds(), init_io(), initaux_io(), peerwait();
+static void finaux_io (struct Cmd *cmdp);
static int pINI(), pQRY(), pQRY1(), pQRY2(), pCMD(), pFIN();
static int ttyR(), ttyNaux(), winN(), winR(), winX();
-static msh(), m_gMsgs(), scanrange(), scanstring(), quit();
+static scanrange(), scanstring();
+static void msh (int scansw);
+static void m_gMsgs (int n);
+static void quit(void);
static fin_io(), m_init();
#if defined(BPOP) || defined(NNTP)
static int read_pop();
@@ -461,8 +482,7 @@ static struct swit mshcmds[] = {
/* */
-static msh (scansw)
-int scansw;
+static void msh (int scansw)
{
int i;
register char *cp,
@@ -924,8 +944,7 @@ register char *s;
/* */
-static m_gMsgs (n)
-int n;
+static void m_gMsgs (int n)
{
int nmsgs;
@@ -1184,8 +1203,7 @@ char *arg;
/* */
-readids (id)
-int id;
+void readids (int id)
{
register int cur,
flags,
@@ -1284,8 +1302,7 @@ int msgnum;
/* */
-display_info (scansw)
-int scansw;
+void display_info (int scansw)
{
int flags,
sd;
@@ -1332,7 +1349,7 @@ int scansw;
/* */
-static write_ids () {
+static void write_ids (void) {
int i = 0,
flags,
msgnum;
@@ -1358,7 +1375,7 @@ static write_ids () {
/* */
-static quit () {
+static void quit (void) {
int i,
md,
msgnum;
@@ -1945,8 +1962,7 @@ int vio;
}
-static int finaux_io (cmdp)
-register struct Cmd *cmdp;
+static void finaux_io (struct Cmd *cmdp)
{
switch (cmdp -> direction) {
case STDIO:
|