comparison alloc.c @ 10:3bfef1f22a97

trivial changes to get rid of compile-time warnings
author Henry S. Thompson <ht@inf.ed.ac.uk>
date Fri, 31 Jan 2025 15:26:11 +0000
parents 2cb46628feec
children
comparison
equal deleted inserted replaced
9:79b6f035cd96 10:3bfef1f22a97
1 #include "alloc.h" 1 #include "alloc.h"
2 #include "error.h" 2 #include "error.h"
3 extern char *malloc(); 3 #include <stdlib.h>
4 extern void free();
5 4
6 #define ALIGNMENT 16 /* XXX: assuming that this alignment is enough */ 5 #define ALIGNMENT 16 /* XXX: assuming that this alignment is enough */
7 #define SPACE 4096 /* must be multiple of ALIGNMENT */ 6 #define SPACE 4096 /* must be multiple of ALIGNMENT */
8 7
9 typedef union { char irrelevant[ALIGNMENT]; double d; } aligned; 8 typedef union { char irrelevant[ALIGNMENT]; double d; } aligned;