summaryrefslogtreecommitdiff
path: root/lib/sbin
diff options
context:
space:
mode:
authoreschnett <eschnett@17b73243-c579-4c4c-a9d2-2d5706c11dac>2012-05-11 16:50:51 +0000
committereschnett <eschnett@17b73243-c579-4c4c-a9d2-2d5706c11dac>2012-05-11 16:50:51 +0000
commit200a7bb2e97f0bd5563dac69c0e5adfff8f6fd97 (patch)
treed2469926d37d13775dd5be532968bbf9d1b2eda9 /lib/sbin
parente2ec68703c8750c203a456385a5c5432db803cfb (diff)
Declare string array as "const char*"
git-svn-id: http://svn.cactuscode.org/flesh/trunk@4822 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'lib/sbin')
-rw-r--r--lib/sbin/CST4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/sbin/CST b/lib/sbin/CST
index d19a357f..8f04f5cc 100644
--- a/lib/sbin/CST
+++ b/lib/sbin/CST
@@ -487,7 +487,7 @@ sub CreateThornsHeaders
my($header1,$header2,$header3,$thorn,$nthorns);
$header1 = "\/* List of compiled thorns in the code. *\/\n\n";
- $header1 .= "static char *thorn_name[] = {\n";
+ $header1 .= "static char const *const thorn_name[] = {\n";
$header2 = "\/* Defines for compiled thorns in the code. *\/\n\n";
$header3 = "\/* Defines for thorn this file is part of *\/\n\n";
@@ -514,7 +514,7 @@ sub CreateThornsHeaders
}
$header1 .= "\"\"};\n\n";
- $header1 .= "static int nthorns = $nthorns;\n\n";
+ $header1 .= "static int const nthorns = $nthorns;\n\n";
return ($header1, $header2, $header3);
}