diff options
author | Guy Harris <guy@alum.mit.edu> | 2014-01-02 20:47:21 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2014-01-02 20:47:21 +0000 |
commit | 9d41c658fe5b003d3a16646d1d05da8c68596b01 (patch) | |
tree | 9cfbf155885a14d5e1d7b1aeff3b277b3fafedc0 /wiretap/iptrace.c | |
parent | 5acabc99b0755be8d199d20f5aff96c3e3873845 (diff) |
No seek-read routines use the length argument, so eliminate it from
wtap_seek_read().
svn path=/trunk/; revision=54570
Diffstat (limited to 'wiretap/iptrace.c')
-rw-r--r-- | wiretap/iptrace.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/wiretap/iptrace.c b/wiretap/iptrace.c index 49c139f8b6..ea1bef4998 100644 --- a/wiretap/iptrace.c +++ b/wiretap/iptrace.c @@ -36,14 +36,12 @@ static gboolean iptrace_read_1_0(wtap *wth, int *err, gchar **err_info, gint64 *data_offset); static gboolean iptrace_seek_read_1_0(wtap *wth, gint64 seek_off, - struct wtap_pkthdr *phdr, Buffer *buf, int packet_size, - int *err, gchar **err_info); + struct wtap_pkthdr *phdr, Buffer *buf, int *err, gchar **err_info); static gboolean iptrace_read_2_0(wtap *wth, int *err, gchar **err_info, gint64 *data_offset); static gboolean iptrace_seek_read_2_0(wtap *wth, gint64 seek_off, - struct wtap_pkthdr *phdr, Buffer *buf, int packet_size, - int *err, gchar **err_info); + struct wtap_pkthdr *phdr, Buffer *buf, int *err, gchar **err_info); static int iptrace_read_rec_header(FILE_T fh, guint8 *header, int header_len, int *err, gchar **err_info); @@ -247,8 +245,7 @@ static gboolean iptrace_read_1_0(wtap *wth, int *err, gchar **err_info, } static gboolean iptrace_seek_read_1_0(wtap *wth, gint64 seek_off, - struct wtap_pkthdr *phdr, Buffer *buf, int packet_size _U_, - int *err, gchar **err_info) + struct wtap_pkthdr *phdr, Buffer *buf, int *err, gchar **err_info) { if (file_seek(wth->random_fh, seek_off, SEEK_SET, err) == -1) return FALSE; @@ -443,8 +440,7 @@ static gboolean iptrace_read_2_0(wtap *wth, int *err, gchar **err_info, } static gboolean iptrace_seek_read_2_0(wtap *wth, gint64 seek_off, - struct wtap_pkthdr *phdr, Buffer *buf, int packet_size _U_, - int *err, gchar **err_info) + struct wtap_pkthdr *phdr, Buffer *buf, int *err, gchar **err_info) { if (file_seek(wth->random_fh, seek_off, SEEK_SET, err) == -1) return FALSE; |