summaryrefslogtreecommitdiff
path: root/net/icb/files
diff options
context:
space:
mode:
authorSteve Price <steve@FreeBSD.org>1999-09-20 02:12:51 +0000
committerSteve Price <steve@FreeBSD.org>1999-09-20 02:12:51 +0000
commit1d90b4b98c03a428fb681d10ef5d33e457f8640e (patch)
treebfe9d83efcbbd2a48643a13056c88f86884cfacc /net/icb/files
parents/chtype/chartype/g so this builds on FreeBSD/Alpha too. (diff)
Fix the first arg to strscat so we can use stdarg macros and get this
to build on FreeBSD/Alpha.
Notes
Notes: svn path=/head/; revision=21804
Diffstat (limited to 'net/icb/files')
-rw-r--r--net/icb/files/patch-ad34
-rw-r--r--net/icb/files/patch-n-ac13
2 files changed, 45 insertions, 2 deletions
diff --git a/net/icb/files/patch-ad b/net/icb/files/patch-ad
new file mode 100644
index 000000000000..036023b82631
--- /dev/null
+++ b/net/icb/files/patch-ad
@@ -0,0 +1,34 @@
+--- icb/strings.c.orig Sun Sep 19 18:14:24 1999
++++ icb/strings.c Sun Sep 19 18:20:05 1999
+@@ -3,7 +3,7 @@
+
+ #include "icb.h"
+ #include "externs.h"
+-#include <varargs.h>
++#include <stdarg.h>
+
+ extern char *charmap;
+
+@@ -334,19 +334,12 @@
+ /* call with strscat(dest, src, src, ...) */
+
+ char *
+-strscat(va_alist)
+-va_dcl
++strscat(char *dest, ...)
+ {
+- char *dest, *src;
+ va_list args;
++ char *src;
+
+- va_start(args);
+-
+- /* get the dest pointer */
+- if ((dest = va_arg(args, char *)) == 0) {
+- puts("fatal error: strscat called without dest");
+- exit(-1);
+- }
++ va_start(args, dest);
+
+ /* copy strings */
+ while ((src = va_arg(args, char *)) != NULL) {
diff --git a/net/icb/files/patch-n-ac b/net/icb/files/patch-n-ac
index 925a665408c6..bba6ba061903 100644
--- a/net/icb/files/patch-n-ac
+++ b/net/icb/files/patch-n-ac
@@ -1,5 +1,14 @@
---- icb/protos.h-orig Fri Feb 24 22:20:25 1995
-+++ icb/protos.h Wed Apr 15 12:07:50 1998
+--- icb/protos.h.orig Fri Feb 24 15:20:25 1995
++++ icb/protos.h Sun Sep 19 18:17:21 1999
+@@ -15,7 +15,7 @@
+ char *idlestr(char *num);
+ char *nextword(char *s);
+ char *response(char *num);
+-char *strscat(int va_alist,...);
++char *strscat(char *dest, ...);
+ char *tildexpand(char *s);
+ int addusage(char *name, int type, char *args, char *usage);
+ sighandler askquit();
@@ -64,7 +64,7 @@
int inserttab(void);
int ishushed(char *nick);