From 259f27b09fcbe1440a00f3024ecdf4c43e218642 Mon Sep 17 00:00:00 2001 From: Patrick Monnerat Date: Wed, 8 Aug 2007 10:37:07 +0000 Subject: Fix getsockname argument type Improve "universal" alignment type in struct memdebug --- lib/memdebug.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'lib/memdebug.c') diff --git a/lib/memdebug.c b/lib/memdebug.c index 2eb4c5afb..9d3ef3d5e 100644 --- a/lib/memdebug.c +++ b/lib/memdebug.c @@ -47,7 +47,10 @@ struct memdebug { size_t size; - double mem[1]; + union { + double d; + void * p; + } mem[1]; /* I'm hoping this is the thing with the strictest alignment * requirements. That also means we waste some space :-( */ }; -- cgit v1.2.3