From: Yee Jiun Date: Sun, 21 Apr 2002 20:51:54 +0000 (+0000) Subject: use pragmas to hit compiler into packing smb_tran2QFSInfo usefully X-Git-Tag: openafs-stable-1_2_4~45 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=e9784fc511cd862c8d8e55204d4ce1ab60f8edd4;p=packages%2Fo%2Fopenafs.git use pragmas to hit compiler into packing smb_tran2QFSInfo usefully (cherry picked from commit 908e05adbedd1130279d82cfe4ee8e9c11c9a4cc) --- diff --git a/src/WINNT/afsd/smb3.h b/src/WINNT/afsd/smb3.h index 136ffab31..72b945a3f 100644 --- a/src/WINNT/afsd/smb3.h +++ b/src/WINNT/afsd/smb3.h @@ -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 */