diff options
author | Bill Meier <wmeier@newsguy.com> | 2011-05-20 15:44:25 +0000 |
---|---|---|
committer | Bill Meier <wmeier@newsguy.com> | 2011-05-20 15:44:25 +0000 |
commit | f3432a973c8bd979334674740903956c55e7cff9 (patch) | |
tree | 8decbb3e16d7182eeb1c189ee81e6d7ef0b74812 /epan/dissectors/packet-pflog.c | |
parent | 4910bc142fcf8072e26179a4fe77c257ecc20225 (diff) |
Don't assign to a proto_item* if the value won't be used:
Fixes Coverity 903,935,968,985,997,999,1024,1025,1134;
Remove unneeded #includes;
Do whitespace cleanup.
svn path=/trunk/; revision=37331
Diffstat (limited to 'epan/dissectors/packet-pflog.c')
-rw-r--r-- | epan/dissectors/packet-pflog.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/epan/dissectors/packet-pflog.c b/epan/dissectors/packet-pflog.c index 64a4d85f39..cc6a1d9b17 100644 --- a/epan/dissectors/packet-pflog.c +++ b/epan/dissectors/packet-pflog.c @@ -32,8 +32,8 @@ # include "config.h" #endif -#include <glib.h> #include <epan/packet.h> + #include <epan/etypes.h> #include <epan/addr_resolv.h> #include "packet-ip.h" @@ -143,8 +143,8 @@ dissect_pflog(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) if (hdrlen < MIN_PFLOG_HDRLEN) { if (tree) { - ti = proto_tree_add_protocol_format(tree, proto_pflog, tvb, 0, - hdrlen, "PF Log invalid header length (%u)", hdrlen); + proto_tree_add_protocol_format(tree, proto_pflog, tvb, 0, + hdrlen, "PF Log invalid header length (%u)", hdrlen); } if (check_col(pinfo->cinfo, COL_INFO)) { col_prepend_fstr(pinfo->cinfo, COL_INFO, "Invalid header length %u", @@ -253,7 +253,7 @@ proto_register_pflog(void) static gint *ett[] = { &ett_pflog }; proto_pflog = proto_register_protocol("OpenBSD Packet Filter log file", - "PFLOG", "pflog"); + "PFLOG", "pflog"); proto_register_field_array(proto_pflog, hf, array_length(hf)); proto_register_subtree_array(ett, array_length(ett)); } @@ -373,8 +373,8 @@ proto_register_old_pflog(void) static gint *ett[] = { &ett_old_pflog }; proto_old_pflog = proto_register_protocol( - "OpenBSD Packet Filter log file, pre 3.4", - "PFLOG-OLD", "pflog-old"); + "OpenBSD Packet Filter log file, pre 3.4", + "PFLOG-OLD", "pflog-old"); proto_register_field_array(proto_old_pflog, hf, array_length(hf)); proto_register_subtree_array(ett, array_length(ett)); } |