[ovs-dev] [PATCH 6/7] Remove build assert

Gurucharan Shetty shettyg at nicira.com
Wed Sep 23 15:05:45 UTC 2015


On Tue, Sep 22, 2015 at 12:53 PM, Alin Serdean
<aserdean at cloudbasesolutions.com> wrote:
> We will support x64 bit compiling making this build assert outdated.
>
> Signed-off-by: Alin Gabriel Serdean <aserdean at cloudbasesolutions.com>
> ---
>  lib/netlink-socket.c | 1 -
>  1 file changed, 1 deletion(-)
>
> diff --git a/lib/netlink-socket.c b/lib/netlink-socket.c
> index 42eb232..6722a86 100644
> --- a/lib/netlink-socket.c
> +++ b/lib/netlink-socket.c
> @@ -1248,7 +1248,6 @@ int
>  nl_sock_fd(const struct nl_sock *sock)
>  {
>  #ifdef _WIN32
> -    BUILD_ASSERT_DECL(sizeof sock->handle == sizeof(int));
>      return (int)sock->handle;

What is the size of handle in 64 bit? If it is 64 bit, won't it get truncated?

>  #else
>      return sock->fd;
> --
> 1.9.5.msysgit.0
> _______________________________________________
> dev mailing list
> dev at openvswitch.org
> http://openvswitch.org/mailman/listinfo/dev



More information about the dev mailing list