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
|
$NetBSD: patch-uip_mhlsbr.c,v 1.1 2013/03/28 21:31:26 joerg Exp $
--- uip/mhlsbr.c.orig 2001-04-04 16:05:16.000000000 +0000
+++ uip/mhlsbr.c
@@ -57,6 +57,8 @@ static char ident[] = "@(#)$Id: mhlsbr.c
#define QUOTE '\\'
+static void m_pclose (void);
+
/* */
static struct swit mhlswitches[] = {
@@ -292,8 +294,13 @@ static TYPESIG intrser (), pipeser (), q
static char *mcomp_add (), *oneline (), *parse ();
static struct mcomp *add_queue ();
-static mhl_format(), evalvar(), process(), mhlfile(), free_queue(), putcomp();
-static putstr(), putch(), face_format(), m_popen();
+static mhl_format(), evalvar(), free_queue();
+static void process (char *folder, char *fname, int ofilen, int ofilec);
+static void mhlfile (FILE *fp, char *mname, int ofilen, int ofilec);
+static void putcomp (struct mcomp *c1, struct mcomp *c2, int flag);
+static putstr(), m_popen();
+static void face_format (struct mcomp *c1);
+static void putch(char ch);
static int ptoi(), ptos(), doface();
void clear_screen ();
@@ -784,11 +791,7 @@ static char *parse () {
/* */
-static process (folder, fname, ofilen, ofilec)
-char *folder,
- *fname;
-int ofilen,
- ofilec;
+static void process (char *folder, char *fname, int ofilen, int ofilec)
{
char *cp;
FILE *fp;
@@ -832,11 +835,7 @@ int ofilen,
/* */
-static mhlfile (fp, mname, ofilen, ofilec)
-register FILE *fp;
-register char *mname;
-int ofilen,
- ofilec;
+static void mhlfile (FILE *fp, char *mname, int ofilen, int ofilec)
{
int state;
register struct mcomp *c1,
@@ -1089,9 +1088,7 @@ struct pqpair {
};
-static mcomp_format (c1, c2)
-register struct mcomp *c1,
- *c2;
+static void mcomp_format (struct mcomp *c1, struct mcomp *c2)
{
int dat[5];
register char *ap,
@@ -1256,10 +1253,7 @@ register struct mcomp **head,
/* */
-static putcomp (c1, c2, flag)
-register struct mcomp *c1,
- *c2;
-int flag;
+static void putcomp (struct mcomp *c1, struct mcomp *c2, int flag)
{
int count,
cchdr;
@@ -1478,9 +1472,8 @@ putstr_sbr(string)
/* */
-static
-putch(ch)
- char ch;
+static void
+putch(char ch)
{
char buf[BUFSIZ];
@@ -1686,8 +1679,7 @@ int i;
/* */
-static face_format (c1)
-register struct mcomp *c1;
+static void face_format (struct mcomp *c1)
{
register char *cp;
register struct mailname *mp;
@@ -2018,7 +2010,7 @@ char *name;
}
-m_pclose () {
+static void m_pclose (void) {
if (m_pid == NOTOK)
return;
|