Source-Changes-HG archive

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

[src/trunk]: src/sys/adosfs Use BYTE_ORDER do determine the endianness, rathe...



details:   https://anonhg.NetBSD.org/src/rev/49b210f7b677
branches:  trunk
changeset: 473325:49b210f7b677
user:      kleink <kleink%NetBSD.org@localhost>
date:      Sat May 29 17:14:27 1999 +0000

description:
Use BYTE_ORDER do determine the endianness, rather than an (incomplete) check
for the machine architecture.

diffstat:

 sys/adosfs/adosfs.h |  4 ++--
 sys/adosfs/adutil.c |  4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r 136ae536bf59 -r 49b210f7b677 sys/adosfs/adosfs.h
--- a/sys/adosfs/adosfs.h       Sat May 29 17:03:17 1999 +0000
+++ b/sys/adosfs/adosfs.h       Sat May 29 17:14:27 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: adosfs.h,v 1.15 1998/09/01 03:33:26 thorpej Exp $      */
+/*     $NetBSD: adosfs.h,v 1.16 1999/05/29 17:14:27 kleink Exp $       */
 
 /*
  * Copyright (c) 1994 Christian E. Hopps
@@ -149,7 +149,7 @@
 /*
  * utility protos
  */
-#ifndef m68k
+#if BYTE_ORDER != BIG_ENDIAN
 u_int32_t adoswordn __P((struct buf *, int));
 #else
 #define adoswordn(bp,wn) (*((u_int32_t *)(bp)->b_data + (wn)))
diff -r 136ae536bf59 -r 49b210f7b677 sys/adosfs/adutil.c
--- a/sys/adosfs/adutil.c       Sat May 29 17:03:17 1999 +0000
+++ b/sys/adosfs/adutil.c       Sat May 29 17:14:27 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: adutil.c,v 1.17 1998/03/01 02:25:18 fvdl Exp $ */
+/*     $NetBSD: adutil.c,v 1.18 1999/05/29 17:14:27 kleink Exp $       */
 
 /*
  * Copyright (c) 1994 Christian E. Hopps
@@ -239,7 +239,7 @@
 }
 #endif
 
-#ifndef m68k
+#if BYTE_ORDER != BIG_ENDIAN
 u_int32_t
 adoswordn(bp, wn)
        struct buf *bp;



Home | Main Index | Thread Index | Old Index