diff options
author | Federico G. Schwindt <fgsch@cvs.openbsd.org> | 2001-08-15 14:48:32 +0000 |
---|---|---|
committer | Federico G. Schwindt <fgsch@cvs.openbsd.org> | 2001-08-15 14:48:32 +0000 |
commit | 44cb10857ad38c6166a47ae3b4e22e368babfd21 (patch) | |
tree | 127f3c70be0d8ae8898ec7024fe46e01a397c2e4 | |
parent | 1070fb6a75f52c21b800b69e66ce5f79dd225895 (diff) |
Use int instead of char to avoid promotion.
-rw-r--r-- | regress/lib/libc_r/stdarg/stdarg.c | 6 | ||||
-rw-r--r-- | regress/lib/libpthread/stdarg/stdarg.c | 6 |
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': |