summaryrefslogtreecommitdiff
path: root/sys/arch/sh
diff options
context:
space:
mode:
authorMatthew Dempsky <matthew@cvs.openbsd.org>2011-03-02 18:31:59 +0000
committerMatthew Dempsky <matthew@cvs.openbsd.org>2011-03-02 18:31:59 +0000
commitfd2d334430301f05c6fc9ba4d9cb5dc026b3db93 (patch)
treec279c022897275dae6709af7972ce6ad7a89b881 /sys/arch/sh
parentac70d5482471f4565461ee7fb18f7a2d96ac3e75 (diff)
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/sh')
-rw-r--r--sys/arch/sh/include/stdarg.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/sh/include/stdarg.h b/sys/arch/sh/include/stdarg.h
index d5b02372f46..9b51419cb51 100644
--- a/sys/arch/sh/include/stdarg.h
+++ b/sys/arch/sh/include/stdarg.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: stdarg.h,v 1.2 2008/10/23 21:25:07 kettenis Exp $ */
+/* $OpenBSD: stdarg.h,v 1.3 2011/03/02 18:31:58 matthew Exp $ */
/* $NetBSD: stdarg.h,v 1.9 2006/05/21 22:39:04 uwe Exp $ */
/*
@@ -49,8 +49,8 @@ typedef __va_list va_list;
#endif
#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 /* !_SH_STDARG_H_ */