diff options
author | Steve Price <steve@FreeBSD.org> | 1999-09-20 02:12:51 +0000 |
---|---|---|
committer | Steve Price <steve@FreeBSD.org> | 1999-09-20 02:12:51 +0000 |
commit | 1d90b4b98c03a428fb681d10ef5d33e457f8640e (patch) | |
tree | bfe9d83efcbbd2a48643a13056c88f86884cfacc /net-im/icb | |
parent | f392532992c0b9e24acee4a9ff08cea98395ee9a (diff) | |
download | ports-1d90b4b98c03a428fb681d10ef5d33e457f8640e.tar.gz ports-1d90b4b98c03a428fb681d10ef5d33e457f8640e.zip |
Notes
Diffstat (limited to 'net-im/icb')
-rw-r--r-- | net-im/icb/files/patch-ad | 34 | ||||
-rw-r--r-- | net-im/icb/files/patch-n-ac | 13 |
2 files changed, 45 insertions, 2 deletions
diff --git a/net-im/icb/files/patch-ad b/net-im/icb/files/patch-ad new file mode 100644 index 000000000000..036023b82631 --- /dev/null +++ b/net-im/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-im/icb/files/patch-n-ac b/net-im/icb/files/patch-n-ac index 925a665408c6..bba6ba061903 100644 --- a/net-im/icb/files/patch-n-ac +++ b/net-im/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); |