Avoid casting pointer to unsigned long long for NULL check
commit69e511e47876443a70357e02e9dbe3385f28f21d
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>
Wed, 17 Jun 2015 01:20:29 +0000 (17 13:20 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 24 Jun 2015 04:04:10 +0000 (24 06:04 +0200)
tree3cd0f1034df32586c76fb66bef47970b7ab0afbd
parent8ed6523b6cf456d50cf4b127687aa0dcb43d88ba
Avoid casting pointer to unsigned long long for NULL check

This allows compilation on i386 with -WError. Otherwise we see
this:

  ../source4/torture/smb2/durable_open.c:41:23: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast]
       __location__, #v, (unsigned long long)v, (unsigned long long)correct); \

because the pointer is 32 bits, while long long is 64.

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source4/torture/smb2/durable_open.c