Make this package build on Linux.

- Use promoted types for va_arg(3).
This commit is contained in:
minskim 2004-06-16 16:09:39 +00:00
parent 6b882c7c6a
commit 8a010757ea
2 changed files with 33 additions and 1 deletions

View file

@ -1,5 +1,6 @@
$NetBSD: distinfo,v 1.4 2004/02/02 09:05:20 grant Exp $
$NetBSD: distinfo,v 1.5 2004/06/16 16:09:39 minskim Exp $
SHA1 (bnc2.8.6.tar.gz) = 19544b83c4e8d558d56621b5001590432de2b4d0
Size (bnc2.8.6.tar.gz) = 52569 bytes
SHA1 (patch-aa) = 089c7ee2523d55404c68ca7ad6f551f6e69f1392
SHA1 (patch-ab) = 74554135c60b7c18c467e674e1e22778b1fa3b95

31
chat/bnc/patches/patch-ab Normal file
View file

@ -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)