[openib-general] Re: [PATCH] use union in ibv_get_device_guid()

Michael S. Tsirkin mst at mellanox.co.il
Wed Sep 7 15:10:41 PDT 2005


Quoting r. Roland Dreier <rolandd at cisco.com>:
> Subject: Re: [PATCH] use union in ibv_get_device_guid()
> 
>     Michael> Lets also add #else #error __BYTE_ORDER differs from both
>     Michael> __LITTLE_ENDIAN and __BIG_ENDIAN #endif just in case?
> 
> OK, I guess I can do that.  I don't think it's that big a deal though,
> since we'll immediately see ntohll and htonll as being undefined.
> 
>  - R.
> 

Not a big deal, I just thought an explicit error message would be more
readable.

-- 
MST



More information about the general mailing list