fix wtap_dump_flush function name and don't check for it's return value. We don't do this check in Ethereal either and we will recognize problems at next write anyway ...

svn path=/trunk/; revision=15805
This commit is contained in:
Ulf Lamping 2005-09-14 23:15:12 +00:00
parent 84cf7ce767
commit 79fac68d61
1 changed files with 1 additions and 4 deletions

View File

@ -1846,10 +1846,7 @@ capture(char *save_file, int out_file_type)
}
if (ld.output_to_pipe) {
if (ld.packet_count > packet_count_prev) {
if (wtap_dump_file_flush(ld.pdh)) {
volatile_err = errno;
ld.go = FALSE;
}
wtap_dump_flush(ld.pdh);
packet_count_prev = ld.packet_count;
}
}