From ebfa0823291c8c282c8ecaa66398581c35f5b4af Mon Sep 17 00:00:00 2001
From: Cyril Brulebois <kibi@debian.org>
Date: Wed, 15 Aug 2012 12:32:41 +0200
Subject: [PATCH 1/6] Mark some data as static.

Those identifiers aren't used except in the files they're declared in,
so mark them static.

Signed-off-by: Cyril Brulebois <kibi@debian.org>
---
 src/buffer.c        |   12 ++++++------
 src/mod_accesslog.c |    2 +-
 src/mod_webdav.c    |    2 +-
 3 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/src/buffer.c b/src/buffer.c
index 43fb71c..cff44fe 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 8fa92ca..6d6c173 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 4b11996..100174d 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" },
-- 
1.7.10.4

