diff options
author | Guy Harris <guy@alum.mit.edu> | 2002-10-19 07:52:12 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2002-10-19 07:52:12 +0000 |
commit | 926a65f2f0c141e5cb25c56913957e05c2985684 (patch) | |
tree | 9e419a4d37e42ac1e07b73bf8d149ee522f1396b /capture.c | |
parent | 213c136c6f7ec0cf4a9e80291c131363046885f7 (diff) |
Suppress compiler warnings on platforms where "time_t" is a "long",
without introducing warnings where it's an "int".
svn path=/trunk/; revision=6459
Diffstat (limited to 'capture.c')
-rw-r--r-- | capture.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -1,7 +1,7 @@ /* capture.c * Routines for packet capture windows * - * $Id: capture.c,v 1.194 2002/10/16 23:34:52 guy Exp $ + * $Id: capture.c,v 1.195 2002/10/19 07:52:12 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -1878,8 +1878,9 @@ capture(gboolean *stats_known, struct pcap_stat *stats) /* calculate and display running time */ cur_time -= start_time; - snprintf(label_str, sizeof(label_str), "%02d:%02d:%02d", - cur_time/3600, cur_time/60%3600, cur_time%60); + snprintf(label_str, sizeof(label_str), "%02ld:%02ld:%02ld", + (long)(cur_time/3600), (long)(cur_time/60%3600), + (long)(cur_time%60)); gtk_label_set(GTK_LABEL(running_time), label_str); if (ld.sync_packets) { |