summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Engelhardt <jengelh@medozas.de>2010-12-26 10:31:03 +0100
committerJan Engelhardt <jengelh@medozas.de>2011-01-07 12:33:12 +0100
commit4a1d810bb52aa5d5c450f7adcde5145d40261b54 (patch)
tree7b014c49e6ef39783f579eedc6931c739744d915
parentd1435e0772e40c310dff35abe7bf1e7de5b18ee4 (diff)
xt_comment: remove redundant cast
-rw-r--r--extensions/libxt_comment.c2
-rw-r--r--include/linux/netfilter/xt_comment.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/extensions/libxt_comment.c b/extensions/libxt_comment.c
index a9325a5d..dba8bb24 100644
--- a/extensions/libxt_comment.c
+++ b/extensions/libxt_comment.c
@@ -86,7 +86,7 @@ comment_save(const void *ip, const struct xt_entry_match *match)
commentinfo->comment[XT_MAX_COMMENT_LEN-1] = '\0';
printf("--comment ");
- xtables_save_string((const char *)commentinfo->comment);
+ xtables_save_string(commentinfo->comment);
}
static struct xtables_match comment_match = {
diff --git a/include/linux/netfilter/xt_comment.h b/include/linux/netfilter/xt_comment.h
index eacfedc6..0ea5e79f 100644
--- a/include/linux/netfilter/xt_comment.h
+++ b/include/linux/netfilter/xt_comment.h
@@ -4,7 +4,7 @@
#define XT_MAX_COMMENT_LEN 256
struct xt_comment_info {
- unsigned char comment[XT_MAX_COMMENT_LEN];
+ char comment[XT_MAX_COMMENT_LEN];
};
#endif /* XT_COMMENT_H */