diff options
author | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2008-06-24 19:27:46 +0000 |
---|---|---|
committer | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2008-06-24 19:27:46 +0000 |
commit | f1b9513b15d6ccf1014cb4b1bbb183c9dc447636 (patch) | |
tree | 2f4927d0fd8771656a569ebf36a3b96f07830dc8 | |
parent | da4150e22af1af2757582d04f1ff684765a3cd67 (diff) |
Get rid of some code that fills in a string that's never used. Get rid
of the string, while we're at it.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@25587 f5534014-38df-0310-8fa8-9805f1628bb7
-rw-r--r-- | epan/dissectors/packet-bat-batman.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/epan/dissectors/packet-bat-batman.c b/epan/dissectors/packet-bat-batman.c index 4c6f93f7d0..9a0ae11085 100644 --- a/epan/dissectors/packet-bat-batman.c +++ b/epan/dissectors/packet-bat-batman.c @@ -217,10 +217,7 @@ static void dissect_bat_batman_v5(tvbuff_t *tvb, packet_info *pinfo, proto_tree struct batman_packet_v5 *batman_packeth; const guint8 *old_orig_addr, *orig_addr; guint32 old_orig, orig; - gchar *flags = "<None>"; gint i; - guint bpos; - size_t fpos = 0, returned_length; tvbuff_t *next_tvb; guint length_remaining; @@ -302,21 +299,6 @@ static void dissect_bat_batman_v5(tvbuff_t *tvb, packet_info *pinfo, proto_tree offset += 1; } - if (check_col(pinfo->cinfo, COL_INFO) || tree) { -#define MAX_FLAGS_LEN 64 - flags = ep_alloc(MAX_FLAGS_LEN); - flags[0] = 0; - for (i = 0; i < 8; i++) { - bpos = 1 << i; - if ((batman_packeth->flags & bpos) && (fstr[i] != NULL)) { - returned_length = g_snprintf(&flags[fpos], MAX_FLAGS_LEN - fpos, "%s%s", - fpos ? ", " : "", - fstr[i]); - fpos += MIN(returned_length, MAX_FLAGS_LEN - fpos); - } - } - } - tap_queue_packet(bat_tap, pinfo, batman_packeth); length_remaining = tvb_length_remaining(tvb, offset); |