Get rid of some code that fills in a string that's never used. Get rid

of the string, while we're at it.

svn path=/trunk/; revision=25587
This commit is contained in:
Guy Harris 2008-06-24 19:27:46 +00:00
parent 015025b06f
commit 7445488cf2

View file

@ -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);