1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00
samba-mirror/ctdb/common
Martin Schwenke 6fd3ce5391 ctdb-daemon: Fix some strict-aliasing warnings
Seeing these with -Wall:

  ../server/ctdb_call.c:1117:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
     record_flags = *(uint32_t *)&c->data[c->keylen + c->datalen];
     ^

memcpy() seems to be the easiest way to get fix these.  The
alternative would be to use unmarshalling functions.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
2014-08-21 04:46:13 +02:00
..
cmdline.c common: Fix setting of debug level in the client code 2013-10-04 15:15:35 +10:00
ctdb_fork.c ctdb-daemon: Check PID in ctdb_remove_pidfile(), not unreliable flag 2014-07-05 06:51:13 +02:00
ctdb_io.c ctdb: Use sys_read() and sys_write() to ensure correct signal interaction 2014-08-21 04:46:13 +02:00
ctdb_logging.c ctdb-logging: Move controls handling functions from common to server 2014-06-12 05:40:10 +02:00
ctdb_ltdb.c ctdb-ltdb: Use tdb_null instead of zeroing TDB_DATA variable 2014-07-14 16:01:31 +02:00
ctdb_message.c build: Fix tdb.h path to enable building with system TDB library 2013-06-14 16:45:27 +10:00
ctdb_util.c ctdb-daemon: Fix some strict-aliasing warnings 2014-08-21 04:46:13 +02:00
rb_tree.c server: Replace BOOL datatype with bool, True/False with true/false 2012-05-28 11:22:25 +10:00
rb_tree.h Added some #ifndefs to stop files being included multiple times. 2011-11-11 14:31:50 +11:00
system_aix.c common/system: Add ctdb_set_process_name() function 2013-07-10 14:33:19 +10:00
system_common.c ctdb-common: Separate system utilties that are ctdb independent 2014-06-12 05:40:10 +02:00
system_freebsd.c common/system: Add ctdb_set_process_name() function 2013-07-10 14:33:19 +10:00
system_gnu.c common/system: Add ctdb_set_process_name() function 2013-07-10 14:33:19 +10:00
system_kfreebsd.c common/system: Add ctdb_set_process_name() function 2013-07-10 14:33:19 +10:00
system_linux.c ctdb-common: Coverity fixes 2013-11-19 17:13:05 +01:00
system_util.c ctdb-common: Copy functions sys_read() and sys_write() from source3 2014-08-21 04:46:13 +02:00