'static' to 'static const'
authoraland <aland>
Fri, 8 Apr 2005 23:38:13 +0000 (23:38 +0000)
committeraland <aland>
Fri, 8 Apr 2005 23:38:13 +0000 (23:38 +0000)
src/main/radwho.c
src/main/request_process.c
src/main/xlat.c

index 8784ad7..db4b0af 100644 (file)
@@ -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 }
 };
index 4b2695f..7e1e860 100755 (executable)
@@ -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 },
 
index b2c8aa5..ab4f96a 100644 (file)
@@ -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 */
 
 
 /*