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/trg-torrent-model.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/trg-torrent-model.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