summaryrefslogtreecommitdiff
path: root/sysutils/dptutil/patches/patch-dpteng_device_cpp
blob: d92b38a70afbdce23f029278f2d7a4977009f9ea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
$NetBSD: patch-dpteng_device_cpp,v 1.1 2011/05/22 19:11:42 dholland Exp $

gcc apparently won't accept passing a packed field by reference
nowadays.

--- dpteng/device.cpp~	2002-08-13 15:02:21.000000000 +0000
+++ dpteng/device.cpp
@@ -4048,7 +4048,15 @@ if (bytesLeft >= bytesNeeded) {
 	// Return this object's manager SCSI ID instead of tag
       basic_P->attachedTo = myMgr_P()->getAddrL();
 	// Reverse the SCSI address bytes
-      reverseBytes(basic_P->attachedTo);
+      {
+	 /*
+	  * dholland 20110522 gcc apparently won't accept passing a
+	  * packed field by reference nowadays.
+	  */
+	 uLONG tmp = basic_P->attachedTo;
+	 reverseBytes(tmp);
+	 basic_P->attachedTo = tmp;
+      }
    }
      // Return the component list size
    fromEng_P->insert(compSize);