Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/sun2/sun2 Fix 2 sequence point errors.



details:   https://anonhg.NetBSD.org/src/rev/6828f4046b99
branches:  trunk
changeset: 532056:6828f4046b99
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Thu May 30 22:43:07 2002 +0000

description:
Fix 2 sequence point errors.

diffstat:

 sys/arch/sun2/sun2/promlib.c |  8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diffs (25 lines):

diff -r 80164d061fa7 -r 6828f4046b99 sys/arch/sun2/sun2/promlib.c
--- a/sys/arch/sun2/sun2/promlib.c      Thu May 30 22:40:31 2002 +0000
+++ b/sys/arch/sun2/sun2/promlib.c      Thu May 30 22:43:07 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: promlib.c,v 1.8 2001/11/30 18:06:55 fredette Exp $     */
+/*     $NetBSD: promlib.c,v 1.9 2002/05/30 22:43:07 thorpej Exp $      */
 
 /*-
  * Copyright (c) 1996 The NetBSD Foundation, Inc.
@@ -296,11 +296,13 @@
        *(store++) = *vec;
        *(vec++) = BRAW;
        *(store++) = *vec;
-       *(vec++) = ((u_long) g0_entry) - ((u_long) vec);
+       *vec = ((u_long) g0_entry) - ((u_long) vec);
+       vec++;
        *(store++) = *vec;
        *(vec++) = BRAW;
        *(store++) = *vec;
-       *(vec++) = ((u_long) g4_entry) - ((u_long) vec);
+       *vec = ((u_long) g4_entry) - ((u_long) vec);
+       vec++;
 #undef BRAW
 
        delay(100000);



Home | Main Index | Thread Index | Old Index