]> git.proxmox.com Git - ovs.git/commit
netdev-windows: fix ofpbuf initialization
authorAlin Serdean <aserdean@cloudbasesolutions.com>
Thu, 27 Oct 2016 19:20:01 +0000 (19:20 +0000)
committerGurucharan Shetty <guru@ovn.org>
Fri, 4 Nov 2016 15:06:50 +0000 (08:06 -0700)
commit583d34678d32482d616fe5bd7dc323f044788898
tree13c126e5df0f25864f72c62515b38fa8979d028d
parent8ebddc5ffd5fbb89186e5f4aba5e3fd791ee7e4d
netdev-windows: fix ofpbuf initialization

ofpbuf_const_initializer takes only two parameters see:

https://github.com/openvswitch/ovs/blob/master/include/openvswitch/ofpbuf.h#L96

the compiler only gives the following warning:

lib/netdev-windows.c(229) : warning C4020: 'ofpbuf_const_initializer' :
too many actual parameters

which in result will put junk data into "ofpbuf b".

This patch fixes the initialization.

Signed-off-by: Alin Gabriel Serdean <aserdean@cloudbasesolutions.com>
Acked-by: Sairam Venugopal <vsairam@vmware.com>
Signed-off-by: Gurucharan Shetty <guru@ovn.org>
lib/netdev-windows.c