diff options
author | Alan Fitton <alan@eth0.org.uk> | 2012-08-18 17:55:11 +0100 |
---|---|---|
committer | Alan Fitton <alan@eth0.org.uk> | 2012-08-18 17:55:11 +0100 |
commit | 3f85f382b9566d361965b9d298bf41b581a8bcb6 (patch) | |
tree | 6d514c25befb86ed250ccdb3ebd00b34dbcea518 /src/trg-torrent-model.c | |
parent | 189a7111324b5076d2414a83d237f41156d95e2f (diff) |
switch back to C99 to avoid some printf specifier unsupported warnings, and use the G_GINT64_FORMAT constant for building the peer stats string
Diffstat (limited to 'src/trg-torrent-model.c')
-rw-r--r-- | src/trg-torrent-model.c | 4 |
1 files changed, 2 insertions, 2 deletions
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), |