some more : try to make read/write not break the build if the return value is not...
[obnox/wireshark/wip.git] / gtk / capture_file_dlg.c
index 49832b8122b2d9583f9bd8c0b1d837be6ea21a2a..c707a6be73bad6e061bf4dbcec5534139acd99ea 100644 (file)
@@ -215,7 +215,7 @@ preview_do(GtkWidget *prev, wtap *wth)
     time(&time_preview);
     while ( (wtap_read(wth, &err, &err_info, &data_offset)) ) {
         phdr = wtap_phdr(wth);
-        cur_time = nstime_to_sec( (const nstime_t *) &phdr->ts );
+        cur_time = wtap_nstime_to_sec(&phdr->ts);
         if(packets == 0) {
             start_time         = cur_time;
             stop_time = cur_time;