]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
use pragmas to hit compiler into packing smb_tran2QFSInfo usefully
authorYee Jiun <yeejiun@yahoo.com>
Sun, 21 Apr 2002 20:51:54 +0000 (20:51 +0000)
committerGarry Zacheiss <zacheiss@mit.edu>
Sun, 21 Apr 2002 20:51:54 +0000 (20:51 +0000)
(cherry picked from commit 908e05adbedd1130279d82cfe4ee8e9c11c9a4cc)

src/WINNT/afsd/smb3.h

index 136ffab31e0828ef065b6213586b855789c2d9a4..72b945a3f7b96e9b24cd63d3904fe68ded2a2ac4 100644 (file)
@@ -41,6 +41,7 @@ typedef struct smb_tran2Dispatch {
 
 typedef struct smb_tran2QFSInfo {
        union {
+#pragma pack(push, 2)
                struct {
                        long FSID;                      /* file system ID */
                         long sectorsPerAllocUnit;
@@ -48,6 +49,7 @@ typedef struct smb_tran2QFSInfo {
                         long availAllocUnits;          /* free blocks */
                         unsigned short bytesPerSector; /* bytes per sector */
                 } allocInfo;
+#pragma pack(pop)
                 struct {
                        long vsn;       /* volume serial number */
                         char vnCount;  /* count of chars in label, incl null */