aboutsummaryrefslogtreecommitdiffstats
path: root/ui/gtk/rlc_lte_graph.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2012-07-10 01:57:55 +0000
committerGuy Harris <guy@alum.mit.edu>2012-07-10 01:57:55 +0000
commit4fad38dbd2187043b6b3090c56ae4058a53250b4 (patch)
tree62d0209b98faefff0f50f37aacc6ef1cb150d91f /ui/gtk/rlc_lte_graph.c
parent3599fe0daf866038a7db1af52fbbf2fd140f4492 (diff)
From Evan Huus:
Fix an uninitialized-variable error that was breaking compile with gcc. Also remove some cruft that looks like it was copy-pasted from ui/gtk/tcp_graph.c Fixes bug 7460. svn path=/trunk/; revision=43635
Diffstat (limited to 'ui/gtk/rlc_lte_graph.c')
-rw-r--r--ui/gtk/rlc_lte_graph.c16
1 files changed, 1 insertions, 15 deletions
diff --git a/ui/gtk/rlc_lte_graph.c b/ui/gtk/rlc_lte_graph.c
index c02b133787..014166d796 100644
--- a/ui/gtk/rlc_lte_graph.c
+++ b/ui/gtk/rlc_lte_graph.c
@@ -171,12 +171,6 @@ struct style_rlc_lte {
int flags;
};
-struct style_wscale {
- int win_width;
- int win_height;
- int flags;
-};
-
/* style flags */
#define SEQ_ORIGIN 0x1
/* show absolute sequence numbers (not differences from isn) */
@@ -976,7 +970,6 @@ static int compare_headers(guint16 ueid1, guint16 channelType1, guint16 channelI
(ueid1 == ueid2) &&
(channelType1 == channelType2) &&
(channelId1 == channelId2) &&
- (direction1 == direction2) &&
(rlcMode1 == rlcMode2);
}
else {
@@ -2268,6 +2261,7 @@ static void graph_get_bounds(struct graph *g)
int n;
guint32 nack_seq_cur;
+ tim = tmp->rel_secs + tmp->rel_usecs / 1000000.0;
ack_seq_cur = tmp->ACKNo;
/* Initialise if first status PDU seen */
@@ -2472,10 +2466,6 @@ static void rlc_lte_make_elmtlist(struct graph *g)
previous_data_y = y;
} else {
- /* STATUS */
- double yy1, yy2;
- double xx1, xx2;
-
/* Remember the last status segment */
last_status_segment = tmp;
@@ -2484,10 +2474,6 @@ static void rlc_lte_make_elmtlist(struct graph *g)
/* Work out positions around this SN */
y = (g->zoom.y * seq_cur);
- yy1 = y + 1;
- yy2 = y - 1;
- xx1 = x - 1;
- xx2 = x + 1;
if (ack_seen) {