summaryrefslogtreecommitdiffstats
path: root/extensions
diff options
context:
space:
mode:
authorJan Engelhardt <jengelh@medozas.de>2011-01-08 03:16:51 +0100
committerJan Engelhardt <jengelh@medozas.de>2011-01-08 03:32:20 +0100
commite814c8b894e5b8d1570c18aec2c67dfb0c0a59c0 (patch)
tree0580b641460c50b1917f145e706a4760993a20e4 /extensions
parentda580fe55ebf234febf4a8880f53a80870e9088f (diff)
libipt_CLUSTERIP: const annotations
Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
Diffstat (limited to 'extensions')
-rw-r--r--extensions/libipt_CLUSTERIP.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/extensions/libipt_CLUSTERIP.c b/extensions/libipt_CLUSTERIP.c
index b89baa8d..9f4c9929 100644
--- a/extensions/libipt_CLUSTERIP.c
+++ b/extensions/libipt_CLUSTERIP.c
@@ -163,9 +163,9 @@ static void CLUSTERIP_check(unsigned int flags)
xtables_error(PARAMETER_PROBLEM, "CLUSTERIP target: Invalid parameter combination\n");
}
-static char *hashmode2str(enum clusterip_hashmode mode)
+static const char *hashmode2str(enum clusterip_hashmode mode)
{
- char *retstr;
+ const char *retstr;
switch (mode) {
case CLUSTERIP_HASHMODE_SIP:
retstr = "sourceip";
@@ -183,7 +183,7 @@ static char *hashmode2str(enum clusterip_hashmode mode)
return retstr;
}
-static char *mac2str(const uint8_t mac[ETH_ALEN])
+static const char *mac2str(const uint8_t mac[ETH_ALEN])
{
static char buf[ETH_ALEN*3];
sprintf(buf, "%02X:%02X:%02X:%02X:%02X:%02X",