Source-Changes-HG archive

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

[src/trunk]: src/usr.sbin/ndbootd Work-around an internal compiler error on t...



details:   https://anonhg.NetBSD.org/src/rev/0491bccf6117
branches:  trunk
changeset: 533972:0491bccf6117
user:      scw <scw%NetBSD.org@localhost>
date:      Thu Jul 11 19:47:17 2002 +0000

description:
Work-around an internal compiler error on the SuperH sh5 toolchain.

diffstat:

 usr.sbin/ndbootd/ndbootd.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r caefae646c89 -r 0491bccf6117 usr.sbin/ndbootd/ndbootd.c
--- a/usr.sbin/ndbootd/ndbootd.c        Thu Jul 11 19:44:26 2002 +0000
+++ b/usr.sbin/ndbootd/ndbootd.c        Thu Jul 11 19:47:17 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ndbootd.c,v 1.5 2002/04/09 02:39:14 thorpej Exp $      */
+/*     $NetBSD: ndbootd.c,v 1.6 2002/07/11 19:47:17 scw Exp $  */
 
 /* ndbootd.c - the Sun Network Disk (nd) daemon: */
 
@@ -81,7 +81,7 @@
 #if 0
 static const char _ndbootd_c_rcsid[] = "<<Id: ndbootd.c,v 1.9 2001/06/13 21:19:11 fredette Exp >>";
 #else
-__RCSID("$NetBSD: ndbootd.c,v 1.5 2002/04/09 02:39:14 thorpej Exp $");
+__RCSID("$NetBSD: ndbootd.c,v 1.6 2002/07/11 19:47:17 scw Exp $");
 #endif
 
 /* includes: */
@@ -197,7 +197,8 @@
        /* finish the checksum: */
        checksum = (checksum >> 16) + (checksum & 0xffff);
        checksum += (checksum >> 16);
-       ip_packet->ip_sum = (~checksum);
+       checksum = ~checksum;
+       ip_packet->ip_sum = checksum;
 }
 /* this finds a network interface: */
 static struct ndbootd_interface *



Home | Main Index | Thread Index | Old Index