Do the cast away of unsignedness in a way that is more commprehensible.
This commit is contained in:
parent
bc08443ef1
commit
ab246934dc
@ -207,7 +207,7 @@ pccard_scan_cis(device_t dev, int (*fct)(struct pccard_tuple *, void *),
|
||||
u_int cksum, sum;
|
||||
int i;
|
||||
|
||||
*((u_int16_t *) & offset) =
|
||||
offset = (uint16_t)
|
||||
pccard_tuple_read_2(&tuple, 0);
|
||||
length = pccard_tuple_read_2(&tuple, 2);
|
||||
cksum = pccard_tuple_read_1(&tuple, 4);
|
||||
|
Loading…
Reference in New Issue
Block a user