Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/pdp10/include Mostly lifted from vax's rev. 1.16:



details:   https://anonhg.NetBSD.org/src/rev/7565e1408b7c
branches:  trunk
changeset: 559510:7565e1408b7c
user:      kleink <kleink%NetBSD.org@localhost>
date:      Fri Mar 19 08:46:25 2004 +0000

description:
Mostly lifted from vax's rev. 1.16:
Fix == vs = typo in __va_copy; from David H. Gutteridge in PR misc/24847.

diffstat:

 sys/arch/pdp10/include/stdarg.h |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r bbfc4e6c7557 -r 7565e1408b7c sys/arch/pdp10/include/stdarg.h
--- a/sys/arch/pdp10/include/stdarg.h   Fri Mar 19 08:38:28 2004 +0000
+++ b/sys/arch/pdp10/include/stdarg.h   Fri Mar 19 08:46:25 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: stdarg.h,v 1.1 2003/08/19 10:53:06 ragge Exp $ */
+/*     $NetBSD: stdarg.h,v 1.2 2004/03/19 08:46:25 kleink Exp $        */
 
 /*-
  * Copyright (c) 1991 The Regents of the University of California.
@@ -65,7 +65,7 @@
 
 #define va_end(ap)     
 
-#define __va_copy(dest, src)   ((dest) == (src))
+#define __va_copy(dest, src)   ((dest) = (src))
 #endif
 #endif /* __GNUC__ */
 
@@ -73,7 +73,7 @@
 #define        va_start(ap, last)      ap = (va_list)&last
 #define        va_arg(ap, type)        (*(type *)((ap) -= (sizeof(type)+3)/4, (ap)))
 #define va_end(ap)
-#define        __va_copy(dest, src)    ((dest) == (src))
+#define        __va_copy(dest, src)    ((dest) = (src))
 #endif /* __PCC__ */
 
 #if !defined(_ANSI_SOURCE) && \



Home | Main Index | Thread Index | Old Index