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)
committerStefan Metzmacher <metze@samba.org>
Fri, 19 Jan 2007 12:22:30 +0000 (12:22 +0000)
commit024ab7c97dc94e2806e63af01ef0d513f4d5e1a7
tree6905b65d90fe0d54e195ea98a67cbd999046441b
parent9924f13167ac89bcc3887873b8214f38ad1d540a
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
source/cluster/ctdb/common/ctdb_call.c
source/cluster/ctdb/include/ctdb_private.h