diff options
author | 2015-12-18 10:26:56 +0100 | |
---|---|---|
committer | 2015-12-18 13:31:56 +0100 | |
commit | 2c29d75021d684559146e656aac85f0c14ffb5ab (patch) | |
tree | f170a34ab269e94ab8c98ff77cd591e1f63157eb /vnet/vnet/ethernet | |
parent | 5f1fd813c2773870ca92510c4e49a18810e9a4c8 (diff) |
Fix warnings/errors reported by clang
Change-Id: Ifb2de64347526e3218e22067452f249ff878fd32
Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'vnet/vnet/ethernet')
-rw-r--r-- | vnet/vnet/ethernet/arp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vnet/vnet/ethernet/arp.c b/vnet/vnet/ethernet/arp.c index 4f948407055..79ff44fd050 100644 --- a/vnet/vnet/ethernet/arp.c +++ b/vnet/vnet/ethernet/arp.c @@ -1746,7 +1746,7 @@ arp_term_l2bd (vlib_main_t * vm, ip0 = arp0->ip4_over_ethernet[1].ip4.as_u32; bd_index0 = vnet_buffer(p0)->l2.bd_index; if (PREDICT_FALSE ( - (bd_index0 != last_bd_index) || (last_bd_index == ~0))) + (bd_index0 != last_bd_index) || (last_bd_index == (u16) ~0))) { last_bd_index = bd_index0; last_bd_config = vec_elt_at_index(l2im->bd_configs, bd_index0); |