Browse Source

[crc32] fix method signature (const pointer)

From: Stefan Bühler <stbuehler@web.de>

git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2984 152afb58-edef-0310-8abb-c4023f1b3aa9
svn/tags/lighttpd-1.4.36
Stefan Bühler 7 years ago
parent
commit
deceae78c9
  1. 2
      src/crc32.c
  2. 2
      src/crc32.h

2
src/crc32.c

@ -70,7 +70,7 @@ static const unsigned int crc_c[256] = {
};
uint32_t generate_crc32c(char *buffer, size_t length) {
uint32_t generate_crc32c(const char *buffer, size_t length) {
size_t i;
uint32_t crc32 = ~0L;

2
src/crc32.h

@ -13,6 +13,6 @@
# include <inttypes.h>
#endif
uint32_t generate_crc32c(char *string, size_t length);
uint32_t generate_crc32c(const char *string, size_t length);
#endif

Loading…
Cancel
Save