blob: f53cc5b2cfdfa974cbf51896ce22117bad8fbf72 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
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
|