diff options
Diffstat (limited to 'main/lighttpd/0024-crc32-fix-method-signature-const-pointer.patch')
-rw-r--r-- | main/lighttpd/0024-crc32-fix-method-signature-const-pointer.patch | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/main/lighttpd/0024-crc32-fix-method-signature-const-pointer.patch b/main/lighttpd/0024-crc32-fix-method-signature-const-pointer.patch new file mode 100644 index 0000000000..f53cc5b2cf --- /dev/null +++ b/main/lighttpd/0024-crc32-fix-method-signature-const-pointer.patch @@ -0,0 +1,44 @@ +From deceae78c9584350d17a9b5b9a5d2fef3def5e45 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Stefan=20B=C3=BChler?= <stbuehler@web.de> +Date: Sun, 8 Feb 2015 19:10:56 +0000 +Subject: [PATCH 24/29] [crc32] fix method signature (const pointer) +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +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 +--- + src/crc32.c | 2 +- + src/crc32.h | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) + +diff --git a/src/crc32.c b/src/crc32.c +index cdad7bc..b19bec5 100644 +--- a/src/crc32.c ++++ b/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; + +diff --git a/src/crc32.h b/src/crc32.h +index c5b4245..10e0e90 100644 +--- a/src/crc32.h ++++ b/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 +-- +2.4.5 + |