diff options
author | Bart De Schuymer <bdschuym@pandora.be> | 2006-01-23 18:50:54 +0000 |
---|---|---|
committer | Bart De Schuymer <bdschuym@pandora.be> | 2006-01-23 18:50:54 +0000 |
commit | 39a1261a723c3c1d1860176cbad4eca17d858b94 (patch) | |
tree | 6d98375dd91fa176e4df4204cee525d85a03eab5 /userspace/ebtables2/extensions/ebt_log.c | |
parent | b6e00345ebf01b06d792cd89522e6b7b114783f7 (diff) |
remove unsigned char * warning with gcc 4.0
Diffstat (limited to 'userspace/ebtables2/extensions/ebt_log.c')
-rw-r--r-- | userspace/ebtables2/extensions/ebt_log.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/userspace/ebtables2/extensions/ebt_log.c b/userspace/ebtables2/extensions/ebt_log.c index 7429479..575d12e 100644 --- a/userspace/ebtables2/extensions/ebt_log.c +++ b/userspace/ebtables2/extensions/ebt_log.c @@ -118,7 +118,7 @@ static int parse(int c, char **argv, int argc, const struct ebt_u_entry *entry, ebt_print_error2("Prefix too long"); if (strchr(optarg, '\"')) ebt_print_error2("Use of \\\" is not allowed in the prefix"); - strcpy(loginfo->prefix, optarg); + strcpy((char *)loginfo->prefix, (char *)optarg); break; case LOG_LEVEL: @@ -188,7 +188,7 @@ static int compare(const struct ebt_entry_watcher *w1, return 0; if (loginfo1->bitmask != loginfo2->bitmask) return 0; - return !strcmp(loginfo1->prefix, loginfo2->prefix); + return !strcmp((char *)loginfo1->prefix, (char *)loginfo2->prefix); } static struct ebt_u_watcher log_watcher = |