r20901: - not all compiler like uint8_t data[0] elements!
authorStefan Metzmacher <metze@samba.org>
Fri, 19 Jan 2007 12:22:30 +0000 (12:22 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 19:43:49 +0000 (14:43 -0500)
commit87f5bed98ad4e40c12095492677b8c5433217aa2
tree7e82145b3a30b15d5bf1d07809b40d07e739c405
parent4c719f82c2fe69710cf30b3c71d3281ca1d79a62
r20901: - not all compiler like uint8_t data[0] elements!
- this fix looks really ugly but I don't know a better solution...

if we would use uint8_t *data; then we would send the pointer value
also in the network packet and we would need to initialize

s->data = ((void *)(&s->data) + 1;

to make the memcpy statements work as they're currently,
so we use uint8_t data[1] in the struct definition ...

tridge: please review careful!

hopefully fix the build on solaris and HPUX

metze
(This used to be commit 015097677c8a65e9f5a4367f4f89193a4b2de76b)
source4/cluster/ctdb/common/ctdb_call.c
source4/cluster/ctdb/include/ctdb_private.h