1
0
Fork 0

ieee1394: fix broken signed char assumption.

"ack_code" is assigned (and tested against) negative numbers, but was
declared as "char".  Which only works if "char" is signed - which it
necessarily isn't.

So make that signedness assumption specific.
wifi-calibration
Linus Torvalds 2005-07-06 13:05:50 -07:00
parent 184f6eb8c4
commit 07bbeaf123
1 changed files with 2 additions and 2 deletions

View File

@ -38,8 +38,8 @@ struct hpsb_packet {
/* These are core internal. */
signed char tlabel;
char ack_code;
char tcode;
signed char ack_code;
unsigned char tcode;
unsigned expect_response:1;
unsigned no_waiter:1;