summaryrefslogtreecommitdiff
path: root/chat/bnc/patches
diff options
context:
space:
mode:
authorminskim <minskim@pkgsrc.org>2004-06-16 16:09:39 +0000
committerminskim <minskim@pkgsrc.org>2004-06-16 16:09:39 +0000
commit8a010757eaef922ad8e6ae472d24a3d636f6a006 (patch)
tree246b7060cfa25cadd459756a9c98917b7c89a263 /chat/bnc/patches
parent6b882c7c6a7c1ddef35ea3ee30d2b584f50370c7 (diff)
downloadpkgsrc-8a010757eaef922ad8e6ae472d24a3d636f6a006.tar.gz
Make this package build on Linux.
- Use promoted types for va_arg(3).
Diffstat (limited to 'chat/bnc/patches')
-rw-r--r--chat/bnc/patches/patch-ab31
1 files changed, 31 insertions, 0 deletions
diff --git a/chat/bnc/patches/patch-ab b/chat/bnc/patches/patch-ab
new file mode 100644
index 00000000000..ee2f5cd9791
--- /dev/null
+++ b/chat/bnc/patches/patch-ab
@@ -0,0 +1,31 @@
+$NetBSD: patch-ab,v 1.1 2004/06/16 16:09:39 minskim Exp $
+
+--- send.c.orig 2002-07-11 10:58:54.000000000 -0500
++++ send.c
+@@ -175,7 +175,7 @@ reschar:
+ sign = '\0';
+ src = buf;
+ eos = src + 1;
+- *src = va_arg(ap, char);
++ *src = va_arg(ap, int);
+ goto writeout;
+ case 's':
+ src = va_arg(ap, char *);
+@@ -211,7 +211,7 @@ reschar:
+ goto nosign;
+ nosign:
+ ulval = flags & flaglongint ? va_arg(ap, long)
+- : flags & flagshortint ? (long)(short)va_arg(ap,short)
++ : flags & flagshortint ? (long)(short)va_arg(ap,int)
+ : (long)va_arg(ap,int) ;
+
+ goto number;
+@@ -225,7 +225,7 @@ nosign:
+ case 'd':
+ case 'i':
+ ulval = flags & flaglongint ? va_arg(ap, long)
+- : flags & flagshortint ? (long)(short)va_arg(ap,short)
++ : flags & flagshortint ? (long)(short)va_arg(ap,int)
+ : (long)va_arg(ap,int) ;
+
+ if((long)ulval < 0)