aboutsummaryrefslogtreecommitdiffstats
path: root/sharkd_session.c
diff options
context:
space:
mode:
authorEvan Huus <eapache@gmail.com>2021-07-19 11:03:52 -0400
committerEvan Huus <eapache@gmail.com>2021-07-19 11:03:52 -0400
commitc7ed8aa3ee25ecb4f4788b0f08fd37e3de2f3473 (patch)
treebc0e0cab651b9e0f5e4023f1ab3685f9a928216d /sharkd_session.c
parent9d50e6e19959da9f1175ff5ca8f2af7a84b45e71 (diff)
Remove unused variables in sharkd_session.c
The compiler pointed them out. I'm not sure what purpose they were meant to serve originally but they're dead now.
Diffstat (limited to 'sharkd_session.c')
-rw-r--r--sharkd_session.c15
1 files changed, 1 insertions, 14 deletions
diff --git a/sharkd_session.c b/sharkd_session.c
index 510c5dc084..ca27847a7f 100644
--- a/sharkd_session.c
+++ b/sharkd_session.c
@@ -1404,8 +1404,7 @@ sharkd_session_process_frames(const char *buf, const jsmntok_t *tokens, int coun
const guint8 *filter_data = NULL;
- guint32 prev_dis_num = 0;
- guint32 current_ref_frame = 0, next_ref_frame = G_MAXUINT32;
+ guint32 next_ref_frame = G_MAXUINT32;
guint32 skip;
guint32 limit;
@@ -1473,7 +1472,6 @@ sharkd_session_process_frames(const char *buf, const jsmntok_t *tokens, int coun
for (guint32 framenum = 1; framenum <= cfile.count; framenum++)
{
frame_data *fdata;
- guint32 ref_frame = (framenum != 1) ? 1 : 0;
enum dissect_request_status status;
int err;
gchar *err_info;
@@ -1484,7 +1482,6 @@ sharkd_session_process_frames(const char *buf, const jsmntok_t *tokens, int coun
if (skip)
{
skip--;
- prev_dis_num = framenum;
continue;
}
@@ -1492,15 +1489,11 @@ sharkd_session_process_frames(const char *buf, const jsmntok_t *tokens, int coun
{
if (framenum >= next_ref_frame)
{
- current_ref_frame = next_ref_frame;
-
if (*tok_refs != ',')
next_ref_frame = G_MAXUINT32;
while (*tok_refs == ',' && framenum >= next_ref_frame)
{
- current_ref_frame = next_ref_frame;
-
if (!ws_strtou32(tok_refs + 1, &tok_refs, &next_ref_frame))
{
fprintf(stderr, "sharkd_session_process_frames() wrong format for refs: %s\n", tok_refs);
@@ -1510,13 +1503,9 @@ sharkd_session_process_frames(const char *buf, const jsmntok_t *tokens, int coun
if (*tok_refs == '\0' && framenum >= next_ref_frame)
{
- current_ref_frame = next_ref_frame;
next_ref_frame = G_MAXUINT32;
}
}
-
- if (current_ref_frame)
- ref_frame = current_ref_frame;
}
fdata = sharkd_get_frame(framenum);
@@ -1544,8 +1533,6 @@ sharkd_session_process_frames(const char *buf, const jsmntok_t *tokens, int coun
break;
}
- prev_dis_num = framenum;
-
if (limit && --limit == 0)
break;
}