Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/scsipi slight change for platform independence



details:   https://anonhg.NetBSD.org/src/rev/e66c56b4ba8f
branches:  trunk
changeset: 480851:e66c56b4ba8f
user:      mjacob <mjacob%NetBSD.org@localhost>
date:      Fri Jan 21 21:19:57 2000 +0000

description:
slight change for platform independence

diffstat:

 sys/dev/scsipi/ses.c |  14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diffs (49 lines):

diff -r 2e148f59b529 -r e66c56b4ba8f sys/dev/scsipi/ses.c
--- a/sys/dev/scsipi/ses.c      Fri Jan 21 21:10:41 2000 +0000
+++ b/sys/dev/scsipi/ses.c      Fri Jan 21 21:19:57 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ses.c,v 1.2 2000/01/21 21:10:41 mjacob Exp $ */
+/*     $NetBSD: ses.c,v 1.3 2000/01/21 21:19:57 mjacob Exp $ */
 /*
  * Copyright (C) 2000 National Aeronautics & Space Administration
  * All rights reserved.
@@ -92,11 +92,6 @@
 #define        SEN_ID          "UNISYS           SUN_SEN"
 #define        SEN_ID_LEN      24
 
-#define        SAFTE_START     44
-#define        SAFTE_END       50
-#define        SAFTE_LEN       SAFTE_END-SAFTE_START
-
-
 static enctyp ses_type __P((void *, int));
 
 
@@ -281,6 +276,7 @@
 }
 
 
+#define        NETBSD_SAFTE_END        50
 
 static enctyp
 ses_device_type(sa)
@@ -300,7 +296,7 @@
         * we don't have to run this as a polled command.
         */
 
-       if (inqp->additional_length >= SAFTE_END-4) {
+       if (inqp->additional_length >= NETBSD_SAFTE_END-4) {
                size_t amt = inqp->additional_length + 4;
                struct scsipi_generic cmd;
                static u_char more[64];
@@ -595,6 +591,10 @@
  * handle that too.
  */
 
+#define        SAFTE_START     44
+#define        SAFTE_END       50
+#define        SAFTE_LEN       SAFTE_END-SAFTE_START
+
 static enctyp
 ses_type(void *buf, int buflen)
 {



Home | Main Index | Thread Index | Old Index