diff options
| author | 2011-03-02 18:31:58 +0000 | |
|---|---|---|
| committer | 2011-03-02 18:31:58 +0000 | |
| commit | 7f8d7838f6074f882f7b4ce8f28f718d89cda3b0 (patch) | |
| tree | 60b526546cc9ecb4a21a5a0815d0838c72ae3538 /sys/arch/arm/include | |
| parent | Don't use a flag value as index into the 2 element array on_off. (diff) | |
| download | wireguard-openbsd-7f8d7838f6074f882f7b4ce8f28f718d89cda3b0.tar.xz wireguard-openbsd-7f8d7838f6074f882f7b4ce8f28f718d89cda3b0.zip | |
Change va_arg and va_end definitions from object-like macros to
function-like macros. Allows (questionable but legal) use of "va_arg"
as a local variable name in code that includes <stdarg.h>.
"seems right" deraadt@
Diffstat (limited to 'sys/arch/arm/include')
| -rw-r--r-- | sys/arch/arm/include/stdarg.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/arm/include/stdarg.h b/sys/arch/arm/include/stdarg.h index 32312c7ddb7..6161c58b8ce 100644 --- a/sys/arch/arm/include/stdarg.h +++ b/sys/arch/arm/include/stdarg.h @@ -1,4 +1,4 @@ -/* $OpenBSD: stdarg.h,v 1.7 2008/10/23 21:25:07 kettenis Exp $ */ +/* $OpenBSD: stdarg.h,v 1.8 2011/03/02 18:31:58 matthew Exp $ */ /* $NetBSD: stdarg.h,v 1.7 2003/08/07 16:26:53 agc Exp $ */ /* @@ -49,8 +49,8 @@ typedef __va_list va_list; #define va_start(ap, last) __builtin_stdarg_start((ap), (last)) -#define va_arg __builtin_va_arg -#define va_end __builtin_va_end +#define va_arg(ap, type) __builtin_va_arg((ap), type) +#define va_end(ap) __builtin_va_end((ap)) #define __va_copy(dest, src) __builtin_va_copy((dest), (src)) #endif /* !_ARM32_STDARG_H_ */ |
