summaryrefslogtreecommitdiff
path: root/chat/icb/patches/patch-al
blob: 70a43ccae0c2d45c4feccaef4a80c44c5557d0e2 (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
$NetBSD: patch-al,v 1.2 2008/12/17 02:19:59 christos Exp $

--- icb/protos.h.orig	1995-02-24 16:20:25.000000000 -0500
+++ icb/protos.h	2008-12-16 20:18:00.000000000 -0500
@@ -64,7 +64,7 @@
 int inserttab(void);
 int ishushed(char *nick);
 int lcaseit(char *s);
-#ifdef linux
+#if defined(linux) || (defined(BSD) && BSD >= 199306)
 int linebuffer(FILE *fp);
 #else
 int linebuffer(struct _iobuf *fp);
@@ -78,7 +78,7 @@
 int mprint(int per, char *from, char *s);
 int numeric(char *txt);
 int parse(char *s);
-int pauseprompt(char *prompt, int erase, int c, int unget, int except);
+int pauseprompt(char *prompt, int erase, int c, int unget, char *except);
 int printcutetime(void);
 int printmilitarytime(void);
 int printnormaltime(void);
@@ -107,7 +107,7 @@
 int split(char *s);
 int startsessionlog(Tcl_Interp *interp, char *path);
 int statusmsg(char *pkt);
-int strcasecmp(char *s1, char *s2);
+int strcasecmp(const char *s1, const char *s2);
 int strcicmp(char *s1, char *s2);
 int strcincmp(char *s1, char *s2, int n);
 int strlinkafter(STRLIST *s, STRLIST *i, STRLIST **head, STRLIST **tail);
@@ -115,7 +115,7 @@
 int strlinkbefore(STRLIST *s, STRLIST *i, STRLIST **head, STRLIST **tail);
 int strlinkhead(STRLIST *s, STRLIST **head, STRLIST **tail);
 int strlinktail(STRLIST *s, STRLIST **head, STRLIST **tail);
-int strncasecmp(char *s1, char *s2, register int n);
+int strncasecmp(const char *s1, const char *s2, size_t n);
 int strunlink(STRLIST *s, STRLIST **head, STRLIST **tail);
 sighandler suspend();
 int tclinit(void);
@@ -140,3 +140,4 @@
 struct server *getservbyname(char *name);
 void listservers(void);
 sighandler icbexit();
+char *basename(char *);