From 3f85f382b9566d361965b9d298bf41b581a8bcb6 Mon Sep 17 00:00:00 2001 From: Alan Fitton Date: Sat, 18 Aug 2012 17:55:11 +0100 Subject: switch back to C99 to avoid some printf specifier unsupported warnings, and use the G_GINT64_FORMAT constant for building the peer stats string --- src/Makefile.am | 2 +- src/trg-torrent-model.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/Makefile.am b/src/Makefile.am index 338a58a..26cd0df 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -44,7 +44,7 @@ desktop_DATA = transmission-remote-gtk.desktop endif bin_PROGRAMS = transmission-remote-gtk -INCLUDES = --pedantic -Wall -I.. -Wno-overflow -DTRGLICENSE=\""$(trglicense)"\" $(libcurl_CFLAGS) $(jsonglib_CFLAGS) $(gthread_CFLAGS) $(gtk_CFLAGS) $(gio_CFLAGS) $(unique_CFLAGS) $(notify_CFLAGS) $(libproxy_CFLAGS) $(libappindicator_CFLAGS) +INCLUDES = -std=c99 --pedantic -Wall -I.. -Wno-overflow -DTRGLICENSE=\""$(trglicense)"\" $(libcurl_CFLAGS) $(jsonglib_CFLAGS) $(gthread_CFLAGS) $(gtk_CFLAGS) $(gio_CFLAGS) $(unique_CFLAGS) $(notify_CFLAGS) $(libproxy_CFLAGS) $(libappindicator_CFLAGS) transmission_remote_gtk_SOURCES = \ trg-cell-renderer-speed.c \ diff --git a/src/trg-torrent-model.c b/src/trg-torrent-model.c index 8e8bcc5..cf490c3 100644 --- a/src/trg-torrent-model.c +++ b/src/trg-torrent-model.c @@ -454,7 +454,7 @@ update_torrent_iter(TrgTorrentModel * model, if (newFlags & TORRENT_FLAG_ACTIVE) { if (lpd >= 0) { peerSources = - g_strdup_printf("%ld / %ld / %ld / %ld / %ld / %ld / %ld", + g_strdup_printf("%"G_GINT64_FORMAT" / %"G_GINT64_FORMAT" / %"G_GINT64_FORMAT" / %"G_GINT64_FORMAT" / %"G_GINT64_FORMAT" / %"G_GINT64_FORMAT" / %"G_GINT64_FORMAT, peerfrom_get_trackers(pf), peerfrom_get_incoming(pf), peerfrom_get_ltep(pf), @@ -462,7 +462,7 @@ update_torrent_iter(TrgTorrentModel * model, lpd, peerfrom_get_resume(pf)); } else { peerSources = - g_strdup_printf("%ld / %ld / %ld / %ld / %ld / N/A / %ld", + g_strdup_printf("%"G_GINT64_FORMAT" / %"G_GINT64_FORMAT" / %"G_GINT64_FORMAT" / %"G_GINT64_FORMAT" / %"G_GINT64_FORMAT" / N/A / %"G_GINT64_FORMAT, peerfrom_get_trackers(pf), peerfrom_get_incoming(pf), peerfrom_get_ltep(pf), -- cgit v1.2.3