r12043: It's amazing the warnings you find when compiling on a 64-bit
authorJeremy Allison <jra@samba.org>
Sat, 3 Dec 2005 06:46:46 +0000 (06:46 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 16:05:42 +0000 (11:05 -0500)
commitc65b752604f8f58abc4e7ae8514dc2c7f086271c
treeda9522d6228c320c6934373dde6e214df3caf8b3
parent47a9f2c3d6039a07a6970ac181aeb2888d47a353
r12043: It's amazing the warnings you find when compiling on a 64-bit
box with gcc4 and -O6...
Fix a bunch of C99 dereferencing type-punned pointer will break
strict-aliasing rules errors. Also added prs_int32 (not uint32...)
as it's needed in one place. Find places where prs_uint32 was being
used to marshall/unmarshall a time_t (a big no no on 64-bits).
More warning fixes to come.
Thanks to Volker for nudging me to compile like this.
Jeremy.
19 files changed:
source/lib/charcnv.c
source/lib/clobber.c
source/lib/crc32.c
source/lib/util_file.c
source/libads/ads_ldap.c
source/libads/ldap.c
source/libsmb/climessage.c
source/libsmb/samlogon_cache.c
source/nmbd/nmbd_namelistdb.c
source/passdb/secrets.c
source/rpc_parse/parse_net.c
source/rpc_parse/parse_prs.c
source/rpc_server/srv_eventlog_nt.c
source/rpc_server/srv_lsa_nt.c
source/rpc_server/srv_reg_nt.c
source/rpc_server/srv_samr_nt.c
source/rpc_server/srv_spoolss_nt.c
source/rpc_server/srv_svcctl_nt.c
source/smbd/message.c