diff options
author | Jeremy Allison <jra@samba.org> | 2005-12-03 06:46:46 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2005-12-03 06:46:46 +0000 |
commit | 65530ce393a9180766bdb7c4c8e0901f09ee2a47 (patch) | |
tree | da9522d6228c320c6934373dde6e214df3caf8b3 /source/nmbd | |
parent | 9deb02d706c994702e7f7e04cb5d8a1f82cdebcb (diff) | |
download | samba-65530ce393a9180766bdb7c4c8e0901f09ee2a47.tar.gz samba-65530ce393a9180766bdb7c4c8e0901f09ee2a47.tar.xz samba-65530ce393a9180766bdb7c4c8e0901f09ee2a47.zip |
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.
Diffstat (limited to 'source/nmbd')
-rw-r--r-- | source/nmbd/nmbd_namelistdb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/nmbd/nmbd_namelistdb.c b/source/nmbd/nmbd_namelistdb.c index 344d3c7ca19..88d5ea52f58 100644 --- a/source/nmbd/nmbd_namelistdb.c +++ b/source/nmbd/nmbd_namelistdb.c @@ -78,7 +78,7 @@ static void update_name_in_namelist( struct subnet_record *subrec, { struct name_record *oldrec = NULL; - ubi_trInsert( subrec->namelist, namerec, &(namerec->name), &oldrec ); + ubi_trInsert( subrec->namelist, namerec, &namerec->name, &oldrec ); if( oldrec ) { SAFE_FREE( oldrec->data.ip ); SAFE_FREE( oldrec ); |