Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/sparc64/include This seems to fix the problem in __...
details: https://anonhg.NetBSD.org/src/rev/7da8d822239b
branches: trunk
changeset: 494046:7da8d822239b
user: eeh <eeh%NetBSD.org@localhost>
date: Thu Jun 29 20:15:24 2000 +0000
description:
This seems to fix the problem in __semctl13.c without breaking anyghing else.
diffstat:
sys/arch/sparc64/include/stdarg.h | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (26 lines):
diff -r a8b9efb4981e -r 7da8d822239b sys/arch/sparc64/include/stdarg.h
--- a/sys/arch/sparc64/include/stdarg.h Thu Jun 29 19:27:55 2000 +0000
+++ b/sys/arch/sparc64/include/stdarg.h Thu Jun 29 20:15:24 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: stdarg.h,v 1.9 2000/02/03 16:16:10 kleink Exp $ */
+/* $NetBSD: stdarg.h,v 1.10 2000/06/29 20:15:24 eeh Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -75,13 +75,13 @@
* For sparcv9 code.
*/
#define __va_arg(ap, type) \
- ((type)*(unsigned long *)((ap) += 8, (ap) - 8))
+ (*(type *)(void *)((ap) += 8, (ap) - (sizeof (type))))
/* Like __va_arg(), except when the type must be 16-byte aligned. */
#define __va_arg16(ap, type) \
- ((type)*(unsigned long *)((__alignof__(type) == 16 ? \
+ (*(type *)((__alignof__(type) == 16 ? \
(ap) = (va_list)(((unsigned long)(ap) + 31) & -16) :\
- ((ap) += 16)), (ap) - 16))
+ ((ap) += 16)), (ap) - (sizeof (type))))
#define __REAL_TYPE_CLASS 8
#define __RECORD_TYPE_CLASS 12
Home |
Main Index |
Thread Index |
Old Index