LGTM, Acked-by: Jarno Rajahalme <jrajaha...@nicira.com>
On Nov 3, 2014, at 2:16 PM, Pravin B Shelar <pshe...@nicira.com> wrote: > Fixes following warning: > ../lib/ovs-router.c:162:11: warning: incorrect type in assignment > (different base types) > ../lib/ovs-router.c:162:11: expected restricted ovs_be32 > [usertype] <noident> > ../lib/ovs-router.c:162:11: got restricted ovs_be16 > > Reported-by: Ben Pfaff <b...@nicira.com> > Signed-off-by: Pravin B Shelar <pshe...@nicira.com> > --- > lib/ovs-router.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/lib/ovs-router.c b/lib/ovs-router.c > index c119c94..8ed7508 100644 > --- a/lib/ovs-router.c > +++ b/lib/ovs-router.c > @@ -159,7 +159,7 @@ scan_ipv4_route(const char *s, ovs_be32 *addr, unsigned > int *plen) > int slen = strlen(s); > uint8_t *ip = (uint8_t *)addr; > > - *addr = htons(0); > + *addr = htonl(0); > if (!ovs_scan(s, "%"SCNu8"%n", &ip[0], &n)) { > return false; > } > -- > 1.9.3 > > _______________________________________________ > dev mailing list > dev@openvswitch.org > http://openvswitch.org/mailman/listinfo/dev _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev