Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/ieee1394 add missing ifdefs



details:   https://anonhg.NetBSD.org/src/rev/2167edd3d7bb
branches:  trunk
changeset: 790526:2167edd3d7bb
user:      christos <christos%NetBSD.org@localhost>
date:      Wed Oct 16 17:40:55 2013 +0000

description:
add missing ifdefs

diffstat:

 sys/dev/ieee1394/fwohci.c |  12 ++++++++----
 1 files changed, 8 insertions(+), 4 deletions(-)

diffs (50 lines):

diff -r 88f59cc37257 -r 2167edd3d7bb sys/dev/ieee1394/fwohci.c
--- a/sys/dev/ieee1394/fwohci.c Wed Oct 16 17:39:09 2013 +0000
+++ b/sys/dev/ieee1394/fwohci.c Wed Oct 16 17:40:55 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: fwohci.c,v 1.135 2013/09/12 20:16:51 martin Exp $      */
+/*     $NetBSD: fwohci.c,v 1.136 2013/10/16 17:40:55 christos Exp $    */
 
 /*-
  * Copyright (c) 2003 Hidetoshi Shimokawa
@@ -37,7 +37,7 @@
  *
  */
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: fwohci.c,v 1.135 2013/09/12 20:16:51 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: fwohci.c,v 1.136 2013/10/16 17:40:55 christos Exp $");
 
 #include <sys/param.h>
 #include <sys/atomic.h>
@@ -2645,9 +2645,9 @@
 {
        struct fw_pkt *fp0;
        uint32_t ld0;
-       int slen, hlen;
+       int hlen;
 #if BYTE_ORDER == BIG_ENDIAN
-       int i;
+       int slen, i;
 #endif
 
        ld0 = FWOHCI_DMA_READ(fp->mode.ld[0]);
@@ -2662,7 +2662,9 @@
        case FWTCODE_WREQQ:
        case FWTCODE_RRESQ:
        case FWOHCITCODE_PHY:
+#if BYTE_ORDER == BIG_ENDIAN
                slen = 12;
+#endif
                break;
 
        case FWTCODE_RREQB:
@@ -2670,7 +2672,9 @@
        case FWTCODE_LREQ:
        case FWTCODE_RRESB:
        case FWTCODE_LRES:
+#if BYTE_ORDER == BIG_ENDIAN
                slen = 16;
+#endif
                break;
 
        default:



Home | Main Index | Thread Index | Old Index