mirror of
https://github.com/openvswitch/ovs
synced 2025-09-04 08:15:25 +00:00
Make the source tree sparse clean.
With this commit, the tree compiles clean with sparse commit 87f4a7fda3d "Teach 'already_tokenized()' to use the stream name hash table" with patch "evaluate: Allow sizeof(_Bool) to succeed" available at http://permalink.gmane.org/gmane.comp.parsers.sparse/2461 applied, as long as the "include/sparse" directory is included for use by sparse (only), e.g.: make CC="CHECK='sparse -I../include/sparse' cgcc"
This commit is contained in:
@@ -673,7 +673,8 @@ netdev_linux_open(struct netdev_dev *netdev_dev_, int ethertype,
|
||||
protocol = (ethertype == NETDEV_ETH_TYPE_ANY ? ETH_P_ALL
|
||||
: ethertype == NETDEV_ETH_TYPE_802_2 ? ETH_P_802_2
|
||||
: ethertype);
|
||||
netdev->fd = socket(PF_PACKET, SOCK_RAW, htons(protocol));
|
||||
netdev->fd = socket(PF_PACKET, SOCK_RAW,
|
||||
(OVS_FORCE int) htons(protocol));
|
||||
if (netdev->fd < 0) {
|
||||
error = errno;
|
||||
goto error;
|
||||
|
Reference in New Issue
Block a user