]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
In usr.sbin/bhyve/pci_ahci.c, fix several gcc warnings of the form
authordim <dim@FreeBSD.org>
Tue, 8 Oct 2013 19:39:21 +0000 (19:39 +0000)
committerdim <dim@FreeBSD.org>
Tue, 8 Oct 2013 19:39:21 +0000 (19:39 +0000)
commit6e282147f30e0a4379b5e3a5e06ce4395722dfc7
tree63097b83d4cc868e7533f64e4419b8e23e292d2e
parent4d9730d87ebcc393e8d10b3ba4efa2799db67896
In usr.sbin/bhyve/pci_ahci.c, fix several gcc warnings of the form
"assignment makes pointer from integer without a cast", by changing the
cmd_lst and rbis members of struct ahci_port from integers to pointers.

Also surround a pow-of-2 test expression with parentheses to clarify it,
and avoid another gcc warning.

Approved by: re (glebius)
Reviewed by: grehan, mav
usr.sbin/bhyve/pci_ahci.c