store the result of fread in a variable to make -Werror happy

svn path=/trunk/; revision=21637
This commit is contained in:
Ronnie Sahlberg 2007-05-02 08:50:16 +00:00
parent a25bb5b393
commit f2d36b3349

View file

@ -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 */