From: Jan Engelhardt Date: Sun, 26 Dec 2010 09:31:03 +0000 (+0100) Subject: xt_comment: remove redundant cast X-Git-Tag: v1.4.11~109 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4a1d810bb52aa5d5c450f7adcde5145d40261b54;p=thirdparty%2Fiptables.git xt_comment: remove redundant cast --- 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 */