From 977e5b302cd1d9bbbc602fc056462a4c9580ae01 Mon Sep 17 00:00:00 2001 From: aland Date: Fri, 8 Apr 2005 23:38:13 +0000 Subject: [PATCH] 'static' to 'static const' --- src/main/radwho.c | 2 +- src/main/request_process.c | 2 +- src/main/xlat.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/radwho.c b/src/main/radwho.c index 8784ad7..db4b0af 100644 --- a/src/main/radwho.c +++ b/src/main/radwho.c @@ -87,7 +87,7 @@ struct radutmp_config_t { char *radutmp_fn; } radutmpconfig; -static CONF_PARSER module_config[] = { +static const CONF_PARSER module_config[] = { { "filename", PW_TYPE_STRING_PTR, 0, &radutmpconfig.radutmp_fn, RADUTMP }, { NULL, -1, 0, NULL, NULL } }; diff --git a/src/main/request_process.c b/src/main/request_process.c index 4b2695f..7e1e860 100755 --- a/src/main/request_process.c +++ b/src/main/request_process.c @@ -200,7 +200,7 @@ void rfc_clean(RADIUS_PACKET *packet) /* * For debugging */ -static LRAD_NAME_NUMBER request_fail_reason[] = { +static const LRAD_NAME_NUMBER request_fail_reason[] = { { "no threads available to handle the request", REQUEST_FAIL_NO_THREADS }, diff --git a/src/main/xlat.c b/src/main/xlat.c index b2c8aa5..ab4f96a 100644 --- a/src/main/xlat.c +++ b/src/main/xlat.c @@ -60,7 +60,7 @@ static const char *internal_xlat[] = {"check", #if REQUEST_MAX_REGEX > 8 #error Please fix the following line #endif -static int xlat_inst[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8 }; /* up to 8 for regex */ +static const int xlat_inst[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8 }; /* up to 8 for regex */ /* -- 2.1.4