ppp/ppp-2.4.1-varargs.patch
cvsdist 7656d4e8e0 auto-import changelog data from ppp-2.4.1-7.src.rpm
Mon Jul 22 2002 Florian La Roche <Florian.LaRoche@redhat.de>
- add patch:
Thu Jun 06 2002 Phil Knirsch <pknirsch@redhat.com>
- Fixed varargs problem for s390/s390x.
2004-09-09 10:41:21 +00:00

12 lines
418 B
Diff

--- ppp-2.4.1/pppd/utils.c.varargs Thu Jun 6 16:22:58 2002
+++ ppp-2.4.1/pppd/utils.c Thu Jun 6 16:22:00 2002
@@ -254,7 +254,7 @@
break;
case 'r':
f = va_arg(args, char *);
-#ifndef __powerpc__
+#if !defined(__powerpc__) && !defined(__s390__) && !defined(__s390x__)
n = vslprintf(buf, buflen + 1, f, va_arg(args, va_list));
#else
/* On the powerpc, a va_list is an array of 1 structure */