]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#10500 back-ldif: crc32() should be static, not globally visible
authorHoward Chu <hyc@openldap.org>
Wed, 6 May 2026 14:04:18 +0000 (15:04 +0100)
committerHoward Chu <hyc@openldap.org>
Wed, 6 May 2026 14:04:18 +0000 (15:04 +0100)
servers/slapd/back-ldif/ldif.c

index f3022e3598489ad26c2f4fa1d55464f6f83567da..2743763d44b3bec95ca91aaf6bf8020390df6ea0 100644 (file)
@@ -390,7 +390,7 @@ static const ber_uint_t crctab[256] = {
 
 #define CRC1   crc = crctab[(crc ^ *buf++) & 0xff] ^ (crc >> 8)
 #define CRC8   CRC1; CRC1; CRC1; CRC1; CRC1; CRC1; CRC1; CRC1
-unsigned int
+static unsigned int
 crc32(const void *vbuf, int len)
 {
        const unsigned char     *buf = vbuf;