changeset 51758:ff38ea4b40ed

(struct ablock): Only include padding when there is some.
author Jason Rumney <jasonr@gnu.org>
date Sun, 06 Jul 2003 14:55:00 +0000
parents e4e794926085
children fab51788b2a1
files src/alloc.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/alloc.c	Sun Jul 06 14:54:30 2003 +0000
+++ b/src/alloc.c	Sun Jul 06 14:55:00 2003 +0000
@@ -645,7 +645,7 @@
 /* BLOCK_ALIGN has to be a power of 2.  */
 #define BLOCK_ALIGN (1 << 10)
 #define BLOCK_BYTES \
-  (BLOCK_ALIGN - sizeof (struct aligned_block *) - ABLOCKS_PADDING)
+  (BLOCK_ALIGN - sizeof (struct alinged_block *) - ABLOCKS_PADDING)
 
 /* Internal data structures and constants.  */
 
@@ -676,7 +676,9 @@
   struct ablocks *abase;
   /* The padding of all but the last ablock is unused.  The padding of
      the last ablock in an ablocks is not allocated.  */
+#if ABLOCKS_PADDING
   char padding[ABLOCKS_PADDING];
+#endif
 };
 
 /* A bunch of consecutive aligned blocks.  */