diff options
author | Eric Leblond <eric@inl.fr> | 2008-07-31 10:43:08 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2008-07-31 10:43:08 +0200 |
commit | 1524d689f179eaaae0836ad8ef2da31b10664feb (patch) | |
tree | 875bf42c1a5abefc8a7ba06e0fc0de21ad0a1049 /util/printflow.c | |
parent | 14a8a1e7dd1301002c99598a2b067cde3ca19b6e (diff) |
cleanup: fix compilation warnings related to pointer comparisons
This patch cast to (char *) some (void *) to avoid a gcc warning in
string format parsing.
Signed-off-by: Eric Leblond <eric@inl.fr>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org
Diffstat (limited to 'util/printflow.c')
-rw-r--r-- | util/printflow.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/util/printflow.c b/util/printflow.c index 73d2969..bb3c2c4 100644 --- a/util/printflow.c +++ b/util/printflow.c @@ -164,12 +164,12 @@ int printflow_print(struct ulogd_key *res, char *buf) if (pp_is_valid(res, PRINTFLOW_ORIG_IP_SADDR)) buf_cur += sprintf(buf_cur, "SRC=%s ", - GET_VALUE(res, PRINTFLOW_ORIG_IP_SADDR).ptr); + (char *) GET_VALUE(res, PRINTFLOW_ORIG_IP_SADDR).ptr); if (pp_is_valid(res, PRINTFLOW_ORIG_IP_DADDR)) buf_cur += sprintf(buf_cur, "DST=%s ", - GET_VALUE(res, PRINTFLOW_ORIG_IP_DADDR).ptr); + (char *) GET_VALUE(res, PRINTFLOW_ORIG_IP_DADDR).ptr); if (!pp_is_valid(res, PRINTFLOW_ORIG_IP_PROTOCOL)) goto orig_out; @@ -215,12 +215,12 @@ orig_out: if (pp_is_valid(res, PRINTFLOW_REPLY_IP_SADDR)) buf_cur += sprintf(buf_cur, "SRC=%s ", - GET_VALUE(res,PRINTFLOW_REPLY_IP_SADDR).ptr); + (char *) GET_VALUE(res,PRINTFLOW_REPLY_IP_SADDR).ptr); if (pp_is_valid(res, PRINTFLOW_REPLY_IP_DADDR)) buf_cur += sprintf(buf_cur, "DST=%s ", - GET_VALUE(res,PRINTFLOW_REPLY_IP_DADDR).ptr); + (char *) GET_VALUE(res,PRINTFLOW_REPLY_IP_DADDR).ptr); if (!pp_is_valid(res, PRINTFLOW_REPLY_IP_PROTOCOL)) goto reply_out; |