From f31dd6cd9691118a2c868b583b39ee9133f388c0 Mon Sep 17 00:00:00 2001 From: Mark Wooding Date: Wed, 4 Sep 2019 18:41:14 +0100 Subject: [PATCH] hash/Makefile.am, hash/crc32.h: Make the CRC table be `const'. Yay. That's an extra kilobyte of sharable data. --- hash/Makefile.am | 2 +- hash/crc32.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hash/Makefile.am b/hash/Makefile.am index c6c7bb6..877cd3a 100644 --- a/hash/Makefile.am +++ b/hash/Makefile.am @@ -51,7 +51,7 @@ $(precomp)/crc32-tab.c: @$(mkdir_p) $(precomp) @$(MAKE) crc-mktab$(EXEEXT) $(AM_V_GEN)./crc-mktab -o $@.new \ - -p0x04c11db7 -b32 -B8 -r -c \ + -p0x04c11db7 -b32 -B8 -r -cC \ -scrc32_table -icrc32.h -tuint32 && \ mv $@.new $@ endif diff --git a/hash/crc32.h b/hash/crc32.h index 7482dc4..429306e 100644 --- a/hash/crc32.h +++ b/hash/crc32.h @@ -40,7 +40,7 @@ /*----- External values ---------------------------------------------------*/ -extern uint32 crc32_table[256]; +extern const uint32 crc32_table[256]; /*----- Macros ------------------------------------------------------------*/ -- 2.11.0