summaryrefslogtreecommitdiff
path: root/chat/icb/patches/patch-icb_msgs.c
blob: b91f40080ae6ff00a6c0a1f65ca19a23fa73c1bb (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
$NetBSD: patch-icb_msgs.c,v 1.1 2013/01/11 13:24:32 joerg Exp $

--- icb/msgs.c.orig	1995-02-24 21:20:24.000000000 +0000
+++ icb/msgs.c
@@ -3,6 +3,7 @@
 
 /* handle various messages from the server */
 
+#include <ctype.h>
 #include <stdio.h>
 #include "icb.h"
 #include "externs.h"
@@ -17,8 +18,7 @@
 
 /* open message */
 
-copenmsg(pkt)
-char *pkt;
+void copenmsg(char *pkt)
 {
 	if (split(pkt) != 2) {
 		putl("[=Error=] got bad open message packet", PL_ALL);
@@ -38,8 +38,7 @@ char *pkt;
 
 /* personal message */
 
-cpersonalmsg(pkt)
-char *pkt;
+void cpersonalmsg(char *pkt)
 {
 	char string[256];
 	char host[256];
@@ -66,8 +65,7 @@ char *pkt;
 
 /* beep message */
 
-beep(pkt)
-char *pkt;
+void beep(char *pkt)
 {
 	char nick[MAX_NICKLEN+1];
 
@@ -110,8 +108,7 @@ exitmsg()
 
 /* protocol version message */
 
-protomsg(pkt)
-char *pkt;
+void protomsg(char *pkt)
 {
 	char *p;
 	int proto_level;
@@ -168,8 +165,7 @@ char *pkt;
 
 /* system status update message */
 
-statusmsg(pkt)
-char *pkt;
+void statusmsg(char *pkt)
 {
 	if (split(pkt) != 2) {
 		putl("[=Error=] got bad status message packet", PL_ALL);
@@ -329,8 +325,7 @@ char *pkt;
 
 /* important system message */
 
-importantmsg(pkt)
-char *pkt;
+void importantmsg(char *pkt)
 {
 	if (split(pkt) != 2) {
 		putl("[=Error=] got bad \"important\" message packet", PL_ALL);