]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
libipt_CLUSTERIP: const annotations
authorJan Engelhardt <jengelh@medozas.de>
Sat, 8 Jan 2011 02:16:51 +0000 (03:16 +0100)
committerJan Engelhardt <jengelh@medozas.de>
Sat, 8 Jan 2011 02:32:20 +0000 (03:32 +0100)
Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
extensions/libipt_CLUSTERIP.c

index b89baa8da8746b26d7b4101bf403e2f0528828f7..9f4c99294e567c3468aeedcea6f67c3ace8d90d9 100644 (file)
@@ -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",