summaryrefslogtreecommitdiff
path: root/regress/lib
diff options
context:
space:
mode:
Diffstat (limited to 'regress/lib')
-rw-r--r--regress/lib/libc_r/stdarg/stdarg.c6
-rw-r--r--regress/lib/libpthread/stdarg/stdarg.c6
2 files changed, 6 insertions, 6 deletions
diff --git a/regress/lib/libc_r/stdarg/stdarg.c b/regress/lib/libc_r/stdarg/stdarg.c
index a3e07d58a21..5e10f6d3cd8 100644
--- a/regress/lib/libc_r/stdarg/stdarg.c
+++ b/regress/lib/libc_r/stdarg/stdarg.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: stdarg.c,v 1.1 2001/08/15 14:37:16 fgsch Exp $ */
+/* $OpenBSD: stdarg.c,v 1.2 2001/08/15 14:48:31 fgsch Exp $ */
/* David Leonard <d@openbsd.org>, 2001. Public Domain. */
/*
@@ -21,7 +21,7 @@ test1(char *fmt, ...)
char ch;
int i;
- char c;
+ int c;
long l;
void *p;
char *ofmt = fmt;
@@ -34,7 +34,7 @@ test1(char *fmt, ...)
EQ(i, 1234);
break;
case 'c':
- c = va_arg(ap, char);
+ c = va_arg(ap, int);
EQ(c, 'x');
break;
case 'l':
diff --git a/regress/lib/libpthread/stdarg/stdarg.c b/regress/lib/libpthread/stdarg/stdarg.c
index a3e07d58a21..5e10f6d3cd8 100644
--- a/regress/lib/libpthread/stdarg/stdarg.c
+++ b/regress/lib/libpthread/stdarg/stdarg.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: stdarg.c,v 1.1 2001/08/15 14:37:16 fgsch Exp $ */
+/* $OpenBSD: stdarg.c,v 1.2 2001/08/15 14:48:31 fgsch Exp $ */
/* David Leonard <d@openbsd.org>, 2001. Public Domain. */
/*
@@ -21,7 +21,7 @@ test1(char *fmt, ...)
char ch;
int i;
- char c;
+ int c;
long l;
void *p;
char *ofmt = fmt;
@@ -34,7 +34,7 @@ test1(char *fmt, ...)
EQ(i, 1234);
break;
case 'c':
- c = va_arg(ap, char);
+ c = va_arg(ap, int);
EQ(c, 'x');
break;
case 'l':