diff options
author | Anders Broman <anders.broman@ericsson.com> | 2010-05-26 19:11:23 +0000 |
---|---|---|
committer | Anders Broman <anders.broman@ericsson.com> | 2010-05-26 19:11:23 +0000 |
commit | 65ee4e797adad6f26d5672bc0b4fbd00d7e41301 (patch) | |
tree | b72e1350067ce80a8a61c6b82bf6157a2223f7a0 /gtk/tcp_graph.c | |
parent | a59da6ffd8d21d01eda12e61ebf1387fed0ae4dd (diff) |
From Jakub Zawadzki:
New functions: cf_read_frame_r, cf_read_frame
It's much easier to write:
cf_read_frame (cf, fdata, &err, &err_info)
Than:
wtap_seek_read (cf->wth, fdata->file_off, &cf->pseudo_header, cf->pd,
fdata->cap_len, &err, &err_info)
svn path=/trunk/; revision=32980
Diffstat (limited to 'gtk/tcp_graph.c')
-rw-r--r-- | gtk/tcp_graph.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gtk/tcp_graph.c b/gtk/tcp_graph.c index 5eb3db7ef6..45f09cbde9 100644 --- a/gtk/tcp_graph.c +++ b/gtk/tcp_graph.c @@ -1798,8 +1798,7 @@ static struct tcpheader *select_tcpip_session (capture_file *cf, struct segment } /* dissect the current frame */ - if (!wtap_seek_read(cf->wth, fdata->file_off, &cf->pseudo_header, - cf->pd, fdata->cap_len, &err, &err_info)) { + if (!cf_read_frame(cf, fdata, &err, &err_info)) { simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK, cf_read_error_message(err, err_info), cf->filename); return NULL; |