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 | 510c9ce916464d6958c4394169fb5e885f4d3a06 (patch) | |
tree | 8cc6d20db5724c7a2c120306cbd70ec90ab8adfd /extensions/ebt_log.c | |
parent | 639bbe9d2f41b776bc3384590151265367de01d9 (diff) |
remove unsigned char * warning with gcc 4.0
Diffstat (limited to 'extensions/ebt_log.c')
-rw-r--r-- | extensions/ebt_log.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/extensions/ebt_log.c b/extensions/ebt_log.c index 7429479..575d12e 100644 --- a/extensions/ebt_log.c +++ b/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 = |