diff options
author | Ulf Lamping <ulf.lamping@web.de> | 2006-11-05 22:46:44 +0000 |
---|---|---|
committer | Ulf Lamping <ulf.lamping@web.de> | 2006-11-05 22:46:44 +0000 |
commit | 59d6c8ea33b703a4282ac6694f2797202b64dfcb (patch) | |
tree | a4abb83c0c20eafb12ab250bcf7f32f74f281b44 /gtk | |
parent | ed837bc7a517040020da2717b392a0ca086e276a (diff) | |
download | wireshark-59d6c8ea33b703a4282ac6694f2797202b64dfcb.tar.gz wireshark-59d6c8ea33b703a4282ac6694f2797202b64dfcb.tar.bz2 wireshark-59d6c8ea33b703a4282ac6694f2797202b64dfcb.zip |
change all file offsets from long to gint64 so we can - theoretically - handle files > 2GB correct.
Please distclean Win32 builds!
svn path=/trunk/; revision=19814
Diffstat (limited to 'gtk')
-rw-r--r-- | gtk/capture_file_dlg.c | 2 | ||||
-rw-r--r-- | gtk/gsm_map_summary.c | 2 | ||||
-rw-r--r-- | gtk/main.c | 18 | ||||
-rw-r--r-- | gtk/mtp3_summary.c | 2 | ||||
-rw-r--r-- | gtk/summary_dlg.c | 2 | ||||
-rw-r--r-- | gtk/win32-file-dlg.c | 2 |
6 files changed, 14 insertions, 14 deletions
diff --git a/gtk/capture_file_dlg.c b/gtk/capture_file_dlg.c index 282a9bf186..dc0a7fbc1d 100644 --- a/gtk/capture_file_dlg.c +++ b/gtk/capture_file_dlg.c @@ -200,7 +200,7 @@ preview_do(GtkWidget *prev, wtap *wth) time_t time_current; int err = 0; gchar *err_info; - long data_offset; + gint64 data_offset; const struct wtap_pkthdr *phdr; double start_time = 0; /* seconds, with nsec resolution */ double stop_time = 0; /* seconds, with nsec resolution */ diff --git a/gtk/gsm_map_summary.c b/gtk/gsm_map_summary.c index 7515bf808e..1ee3acc046 100644 --- a/gtk/gsm_map_summary.c +++ b/gtk/gsm_map_summary.c @@ -110,7 +110,7 @@ gsm_map_stat_gtk_sum_cb(GtkWidget *w _U_, gpointer d _U_) add_string_to_box(string_buff, file_box); /* length */ - g_snprintf(string_buff, SUM_STR_MAX, "Length: %lu", summary.file_length); + g_snprintf(string_buff, SUM_STR_MAX, "Length: %lld", summary.file_length); add_string_to_box(string_buff, file_box); /* format */ diff --git a/gtk/main.c b/gtk/main.c index 6d7f0bc477..4b6bb91790 100644 --- a/gtk/main.c +++ b/gtk/main.c @@ -1401,11 +1401,11 @@ set_display_filename(capture_file *cf) /* convert file size */ if (cf->f_datalen/1024/1024 > 10) { - size_str = g_strdup_printf("%ld MB", cf->f_datalen/1024/1024); + size_str = g_strdup_printf("%lld MB", cf->f_datalen/1024/1024); } else if (cf->f_datalen/1024 > 10) { - size_str = g_strdup_printf("%ld KB", cf->f_datalen/1024); + size_str = g_strdup_printf("%lld KB", cf->f_datalen/1024); } else { - size_str = g_strdup_printf("%ld Bytes", cf->f_datalen); + size_str = g_strdup_printf("%lld Bytes", cf->f_datalen); } /* statusbar */ @@ -1657,19 +1657,19 @@ main_cf_cb_live_capture_update_continue(capture_file *cf) #if 0 /* XXX - don't show the highest expert level unless the TCP checksum offloading is "solved" */ if (cf->f_datalen/1024/1024 > 10) { - capture_msg = g_strdup_printf(" %s: <live capture in progress> File: %s %ld MB [Expert: %s]", + capture_msg = g_strdup_printf(" %s: <live capture in progress> File: %s %lld MB [Expert: %s]", get_interface_descriptive_name(capture_opts->iface), capture_opts->save_file, cf->f_datalen/1024/1024, val_to_str(expert_get_highest_severity(), expert_severity_vals, "Unknown (%u)")); } else if (cf->f_datalen/1024 > 10) { - capture_msg = g_strdup_printf(" %s: <live capture in progress> File: %s %ld KB [Expert: %s]", + capture_msg = g_strdup_printf(" %s: <live capture in progress> File: %s %lld KB [Expert: %s]", get_interface_descriptive_name(capture_opts->iface), capture_opts->save_file, cf->f_datalen/1024, val_to_str(expert_get_highest_severity(), expert_severity_vals, "Unknown (%u)")); } else { - capture_msg = g_strdup_printf(" %s: <live capture in progress> File: %s %ld Bytes [Expert: %s]", + capture_msg = g_strdup_printf(" %s: <live capture in progress> File: %s %lld Bytes [Expert: %s]", get_interface_descriptive_name(capture_opts->iface), capture_opts->save_file, cf->f_datalen, @@ -1677,17 +1677,17 @@ main_cf_cb_live_capture_update_continue(capture_file *cf) } #endif if (cf->f_datalen/1024/1024 > 10) { - capture_msg = g_strdup_printf(" %s: <live capture in progress> File: %s %ld MB", + capture_msg = g_strdup_printf(" %s: <live capture in progress> File: %s %lld MB", get_interface_descriptive_name(capture_opts->iface), capture_opts->save_file, cf->f_datalen/1024/1024); } else if (cf->f_datalen/1024 > 10) { - capture_msg = g_strdup_printf(" %s: <live capture in progress> File: %s %ld KB", + capture_msg = g_strdup_printf(" %s: <live capture in progress> File: %s %lld KB", get_interface_descriptive_name(capture_opts->iface), capture_opts->save_file, cf->f_datalen/1024); } else { - capture_msg = g_strdup_printf(" %s: <live capture in progress> File: %s %ld Bytes", + capture_msg = g_strdup_printf(" %s: <live capture in progress> File: %s %lld Bytes", get_interface_descriptive_name(capture_opts->iface), capture_opts->save_file, cf->f_datalen); diff --git a/gtk/mtp3_summary.c b/gtk/mtp3_summary.c index a3872260ad..f57ae06cd9 100644 --- a/gtk/mtp3_summary.c +++ b/gtk/mtp3_summary.c @@ -276,7 +276,7 @@ mtp3_sum_gtk_sum_cb(GtkWidget *w _U_, gpointer d _U_) add_string_to_box(string_buff, file_box); /* length */ - g_snprintf(string_buff, SUM_STR_MAX, "Length: %lu", summary.file_length); + g_snprintf(string_buff, SUM_STR_MAX, "Length: %lld", summary.file_length); add_string_to_box(string_buff, file_box); /* format */ diff --git a/gtk/summary_dlg.c b/gtk/summary_dlg.c index ae6af94a7f..d286f2740e 100644 --- a/gtk/summary_dlg.c +++ b/gtk/summary_dlg.c @@ -144,7 +144,7 @@ summary_open_cb(GtkWidget *w _U_, gpointer d _U_) add_string_to_table(table, &row, "Name:", string_buff); /* length */ - g_snprintf(string_buff, SUM_STR_MAX, "%lu bytes", summary.file_length); + g_snprintf(string_buff, SUM_STR_MAX, "%lld bytes", summary.file_length); add_string_to_table(table, &row, "Length:", string_buff); /* format */ diff --git a/gtk/win32-file-dlg.c b/gtk/win32-file-dlg.c index fb24c61ac9..bbaf930172 100644 --- a/gtk/win32-file-dlg.c +++ b/gtk/win32-file-dlg.c @@ -770,7 +770,7 @@ preview_set_filename(HWND of_hwnd, gchar *preview_file) { int err = 0; gchar *err_info; TCHAR string_buff[PREVIEW_STR_MAX]; - long data_offset; + gint64 data_offset; guint packet = 0; guint64 filesize; time_t ti_time; |