diff options
author | Ronnie Sahlberg <ronnie_sahlberg@ozemail.com.au> | 2007-05-02 08:50:16 +0000 |
---|---|---|
committer | Ronnie Sahlberg <ronnie_sahlberg@ozemail.com.au> | 2007-05-02 08:50:16 +0000 |
commit | f2d36b3349adcc00498597bf659864517667149a (patch) | |
tree | f98355af626d80290f3b6d43c9f26a72427cc1a6 | |
parent | a25bb5b393fac1c838e2f193f59d8dbf468d2970 (diff) |
store the result of fread in a variable to make -Werror happy
svn path=/trunk/; revision=21637
-rw-r--r-- | gtk/follow_dlg.c | 3 |
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 */ |