diff --git a/src/buffer.c b/src/buffer.c index 43fb71c1..cff44fe2 100644 --- a/src/buffer.c +++ b/src/buffer.c @@ -629,7 +629,7 @@ int buffer_copy_string_hex(buffer *b, const char *in, size_t in_len) { } /* everything except: ! ( ) * - . 0-9 A-Z _ a-z */ -const char encoded_chars_rel_uri_part[] = { +static const char encoded_chars_rel_uri_part[] = { /* 0 1 2 3 4 5 6 7 8 9 A B C D E F */ @@ -652,7 +652,7 @@ const char encoded_chars_rel_uri_part[] = { }; /* everything except: ! ( ) * - . / 0-9 A-Z _ a-z */ -const char encoded_chars_rel_uri[] = { +static const char encoded_chars_rel_uri[] = { /* 0 1 2 3 4 5 6 7 8 9 A B C D E F */ @@ -674,7 +674,7 @@ const char encoded_chars_rel_uri[] = { 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, /* F0 - FF */ }; -const char encoded_chars_html[] = { +static const char encoded_chars_html[] = { /* 0 1 2 3 4 5 6 7 8 9 A B C D E F */ @@ -696,7 +696,7 @@ const char encoded_chars_html[] = { 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, /* F0 - FF */ }; -const char encoded_chars_minimal_xml[] = { +static const char encoded_chars_minimal_xml[] = { /* 0 1 2 3 4 5 6 7 8 9 A B C D E F */ @@ -718,7 +718,7 @@ const char encoded_chars_minimal_xml[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* F0 - FF */ }; -const char encoded_chars_hex[] = { +static const char encoded_chars_hex[] = { /* 0 1 2 3 4 5 6 7 8 9 A B C D E F */ @@ -740,7 +740,7 @@ const char encoded_chars_hex[] = { 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, /* F0 - FF */ }; -const char encoded_chars_http_header[] = { +static const char encoded_chars_http_header[] = { /* 0 1 2 3 4 5 6 7 8 9 A B C D E F */ diff --git a/src/mod_accesslog.c b/src/mod_accesslog.c index 8fa92cab..6d6c1732 100644 --- a/src/mod_accesslog.c +++ b/src/mod_accesslog.c @@ -69,7 +69,7 @@ typedef struct { * */ -const format_mapping fmap[] = +static const format_mapping fmap[] = { { '%', FORMAT_PERCENT }, { 'h', FORMAT_REMOTE_HOST }, diff --git a/src/mod_webdav.c b/src/mod_webdav.c index 4b119966..100174d0 100644 --- a/src/mod_webdav.c +++ b/src/mod_webdav.c @@ -939,7 +939,7 @@ typedef struct { char *prop; } webdav_property; -webdav_property live_properties[] = { +static webdav_property live_properties[] = { { "DAV:", "creationdate" }, { "DAV:", "displayname" }, { "DAV:", "getcontentlanguage" },