The definition of 'offsetof' must cast NULL to (type *), not (type). Signed-off-by: Peter Mitsis <peter.mitsis@windriver.com>