diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2006-04-09 03:07:54 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2006-04-09 03:07:54 +0000 |
commit | 96af28e70eca24e66067eae1b00cfc51a58c9513 (patch) | |
tree | 4b9535df01b30ad946f08248b98da0b67c641e54 /sys/arch/alpha/include | |
parent | 64c374962577b0b1efc3c9c7d82a1111f5313f5b (diff) |
#ifdef lint wraps for va_start
Diffstat (limited to 'sys/arch/alpha/include')
-rw-r--r-- | sys/arch/alpha/include/stdarg.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/arch/alpha/include/stdarg.h b/sys/arch/alpha/include/stdarg.h index 03b50b40166..d0af6ac6952 100644 --- a/sys/arch/alpha/include/stdarg.h +++ b/sys/arch/alpha/include/stdarg.h @@ -1,4 +1,4 @@ -/* $OpenBSD: stdarg.h,v 1.9 2006/01/06 18:53:04 millert Exp $ */ +/* $OpenBSD: stdarg.h,v 1.10 2006/04/09 03:07:52 deraadt Exp $ */ /* $NetBSD: stdarg.h,v 1.4 1996/10/09 21:13:05 cgd Exp $ */ /*- @@ -43,8 +43,12 @@ typedef __va_list va_list; #define __va_size(type) \ (((sizeof(type) + sizeof(long) - 1) / sizeof(long)) * sizeof(long)) +#ifdef lint +#define va_start(ap,lastarg) ((ap) = (ap)) +#else #define va_start(ap, last) \ (__builtin_next_arg(last), (ap) = *(va_list *)__builtin_saveregs(), (ap).pad = 0) +#endif /* lint */ #define __REAL_TYPE_CLASS 8 #define __va_arg_offset(ap, type) \ |