From 9d5027b958e0ed7d2fa2c804fd255d686e8da5a7 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Tue, 29 Jul 1997 11:49:07 +0000 Subject: [PATCH] See ChangeLogs. --- lib/config.h | 1 + lib/lib.h | 5 +---- lib/pools.h | 4 +++- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/config.h b/lib/config.h index bbed4d5d..62ef1af3 100644 --- a/lib/config.h +++ b/lib/config.h @@ -24,6 +24,7 @@ typedef unsigned int uns; /* at least 32 bits */ #undef CPU_BIG_ENDIAN #define CPU_CAN_DO_UNALIGNED_WORDS #define CPU_CAN_DO_UNALIGNED_LONGS +#define CPU_STRUCT_ALIGN 4 /* Misc */ diff --git a/lib/lib.h b/lib/lib.h index 3c94ea0c..d13b696c 100644 --- a/lib/lib.h +++ b/lib/lib.h @@ -83,6 +83,7 @@ int log2(ulg); struct odes { /* Object description */ struct oattr *attrs; + struct mempool *pool; }; struct oattr { /* Object attribute */ @@ -127,10 +128,6 @@ void hex_to_md5(byte *, byte *); #define MD5_SIZE 16 #define MD5_HEX_SIZE 33 -/* fcopy.c */ - -void fcopy(FILE *, FILE *, uns, byte *, uns); - /* prime.c */ int isprime(uns); diff --git a/lib/pools.h b/lib/pools.h index 861cf82a..3129c6a7 100644 --- a/lib/pools.h +++ b/lib/pools.h @@ -4,7 +4,9 @@ * (c) 1997 Martin Mares, */ -#define POOL_ALIGN 4 +#ifndef POOL_ALIGN +#define POOL_ALIGN CPU_STRUCT_ALIGN +#endif struct mempool { struct memchunk *chunks; -- 2.39.2