Source-Changes-HG archive

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

[src/trunk]: src/sys/net Make it compile for the __NO_STRICT_ALIGNMENT case.



details:   https://anonhg.NetBSD.org/src/rev/be95b7f375ae
branches:  trunk
changeset: 535476:be95b7f375ae
user:      kristerw <kristerw%NetBSD.org@localhost>
date:      Tue Aug 20 03:32:08 2002 +0000

description:
Make it compile for the __NO_STRICT_ALIGNMENT case.

diffstat:

 sys/net/if_ethersubr.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 4e42f0871726 -r be95b7f375ae sys/net/if_ethersubr.c
--- a/sys/net/if_ethersubr.c    Tue Aug 20 02:34:04 2002 +0000
+++ b/sys/net/if_ethersubr.c    Tue Aug 20 03:32:08 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_ethersubr.c,v 1.96 2002/08/19 18:58:50 thorpej Exp $        */
+/*     $NetBSD: if_ethersubr.c,v 1.97 2002/08/20 03:32:08 kristerw Exp $       */
 
 /*
  * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -65,7 +65,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_ethersubr.c,v 1.96 2002/08/19 18:58:50 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_ethersubr.c,v 1.97 2002/08/20 03:32:08 kristerw Exp $");
 
 #include "opt_inet.h"
 #include "opt_atalk.h"
@@ -481,7 +481,7 @@
        eh = mtod(m, struct ether_header *);
        /* Note: etype is already in network byte order. */
 #ifdef __NO_STRICT_ALIGNMENT
-       eh->ether_type = type;
+       eh->ether_type = etype;
 #else
        {
                uint8_t *dstp = (uint8_t *) &eh->ether_type;



Home | Main Index | Thread Index | Old Index