Add the offsetof macro to libctdb
authorRonnie Sahlberg <ronniesahlberg@gmail.com>
Wed, 2 Jun 2010 05:13:32 +0000 (15:13 +1000)
committerRonnie Sahlberg <ronniesahlberg@gmail.com>
Wed, 2 Jun 2010 05:13:32 +0000 (15:13 +1000)
commit07b395258ab08218e8eed3b4a52654925b85275c
tree69b2645f99828e25e388762d2a6e9d669db6403e
parent573e4e2d2bd09dd9579150cce926de774a0b609c
Add the offsetof macro to libctdb

change all calls to new_ctdb_request() to use the offset macro to calculate the correct size (instead of allocating one byte too many and hoping the alignment padding saves us.)
libctdb/ctdb.c
libctdb/libctdb_private.h
libctdb/messages.c