git://git.onelab.eu
/
iptables.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge to iptables-1.3.5
[iptables.git]
/
extensions
/
libipt_comment.c
diff --git
a/extensions/libipt_comment.c
b/extensions/libipt_comment.c
index
c543fc6
..
692acca
100644
(file)
--- a/
extensions/libipt_comment.c
+++ b/
extensions/libipt_comment.c
@@
-30,7
+30,7
@@
static struct option opts[] = {
};
static void
};
static void
-parse_comment(const
unsigned
char *s, struct ipt_comment_info *info)
+parse_comment(const char *s, struct ipt_comment_info *info)
{
int slen = strlen(s);
{
int slen = strlen(s);
@@
-38,7
+38,7
@@
parse_comment(const unsigned char *s, struct ipt_comment_info *info)
exit_error(PARAMETER_PROBLEM,
"COMMENT must be shorter than %i characters", IPT_MAX_COMMENT_LEN);
}
exit_error(PARAMETER_PROBLEM,
"COMMENT must be shorter than %i characters", IPT_MAX_COMMENT_LEN);
}
- strcpy(info->comment, s);
+ strcpy(
(char *)
info->comment, s);
}
/* Function which parses command options; returns true if it
}
/* Function which parses command options; returns true if it