Date: Sun, 13 Jul 2003 21:20:22 +0200 From: "Eli Zaretskii" Sender: halo1 AT zahav DOT net DOT il To: andnews AT ihug DOT com DOT oz DOT au Message-Id: <9003-Sun13Jul2003212022+0300-eliz@elta.co.il> X-Mailer: emacs 21.3.50 (via feedmail 8 I) and Blat ver 1.8.9 CC: djgpp AT delorie DOT com In-reply-to: (message from Andrew on Mon, 07 Jul 2003 20:16:17 +1000) Subject: Re: ASPI issue References: Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk > From: Andrew > Newsgroups: comp.os.msdos.djgpp > Date: Mon, 07 Jul 2003 20:16:17 +1000 > >typedef struct { > > unsigned char commandCode; > > unsigned char commandStatus; > ... SNIP.. > > unsigned char reserved2[ 34 ]; > > unsigned char cdb[ 6 ]; > > unsigned char sense[ SENSE_LENGTH ]; > >} srbCdb6; > This structure may need to be packed. No, it doesn't: all the struct members are declared `char', so they are already packed (since a char member doesn't require any alignment.