summaryrefslogtreecommitdiff
path: root/gtk/follow_dlg.c
diff options
context:
space:
mode:
authorRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2007-05-02 08:50:16 +0000
committerRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2007-05-02 08:50:16 +0000
commitf2d36b3349adcc00498597bf659864517667149a (patch)
treef98355af626d80290f3b6d43c9f26a72427cc1a6 /gtk/follow_dlg.c
parenta25bb5b393fac1c838e2f193f59d8dbf468d2970 (diff)
downloadwireshark-f2d36b3349adcc00498597bf659864517667149a.tar.gz
store the result of fread in a variable to make -Werror happy
svn path=/trunk/; revision=21637
Diffstat (limited to 'gtk/follow_dlg.c')
-rw-r--r--gtk/follow_dlg.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gtk/follow_dlg.c b/gtk/follow_dlg.c
index c6e00484bc..cfabbe8bcf 100644
--- a/gtk/follow_dlg.c
+++ b/gtk/follow_dlg.c
@@ -185,6 +185,7 @@ follow_stream_cb(GtkWidget * w, gpointer data _U_)
follow_tcp_stats_t stats;
follow_info_t *follow_info;
tcp_stream_chunk sc;
+ int nread;
/* we got tcp so we can follow */
if (cfile.edt->pi.ipproto != IP_PROTO_TCP) {
@@ -383,7 +384,7 @@ follow_stream_cb(GtkWidget * w, gpointer data _U_)
*/
rewind(data_out_file);
- fread(&sc, 1, sizeof(sc), data_out_file);
+ nread=fread(&sc, 1, sizeof(sc), data_out_file);
fclose(data_out_file);
/* Host 0 --> Host 1 */