winnt-deal-with-compiler-packing-20020310
authorYee Jiun <yeejiun@yahoo.com>
Sun, 10 Mar 2002 18:24:16 +0000 (18:24 +0000)
committerDerrick Brashear <shadow@dementia.org>
Sun, 10 Mar 2002 18:24:16 +0000 (18:24 +0000)
use pragmas to hit compiler into packing smb_tran2QFSInfo usefully

src/WINNT/afsd/smb3.h

index 136ffab..72b945a 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 */