]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libc/crc32: make fill value of excluded area configurable
authorThomas Weißschuh <thomas@t-8ch.de>
Thu, 27 Feb 2025 17:16:01 +0000 (18:16 +0100)
committerThomas Weißschuh <thomas@t-8ch.de>
Thu, 27 Feb 2025 17:16:01 +0000 (18:16 +0100)
commit977dd748c53a24c01ed23d3be65f6489130795fc
tree0c01cd231e21cc1f5b728ed4a97a307ed1e6f7f0
parent3836dc49923e3a121ffcc7c7d8ec6640d1fcf843
libc/crc32: make fill value of excluded area configurable

A new user of crc32_exclude_offset() is going to be added which requires
a different fill value than the currently hardcoded "0".

Add a parameter where each caller can specify their own value.

Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
include/crc32.h
lib/crc32.c
libblkid/src/partitions/gpt.c
libblkid/src/superblocks/cramfs.c
libblkid/src/superblocks/zonefs.c
libfdisk/src/gpt.c