diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/torrent.c | 2 | ||||
-rw-r--r-- | src/trg-cell-renderer-numgteqthan.c | 2 | ||||
-rw-r--r-- | src/trg-remote-prefs-dialog.c | 4 | ||||
-rw-r--r-- | src/trg-stats-dialog.c | 4 | ||||
-rw-r--r-- | src/util.c | 2 |
5 files changed, 7 insertions, 7 deletions
diff --git a/src/torrent.c b/src/torrent.c index ed1a232..784668f 100644 --- a/src/torrent.c +++ b/src/torrent.c @@ -310,7 +310,7 @@ gchar *torrent_get_status_string(gint64 rpcv, gint64 value) } } - //g_warning("Unknown status: %li", value); + //g_warning("Unknown status: %ld", value); return g_strdup(_("Unknown")); } diff --git a/src/trg-cell-renderer-numgteqthan.c b/src/trg-cell-renderer-numgteqthan.c index f3d43bb..a2bbd4a 100644 --- a/src/trg-cell-renderer-numgteqthan.c +++ b/src/trg-cell-renderer-numgteqthan.c @@ -66,7 +66,7 @@ trg_cell_renderer_numgteqthan_set_property(GObject * object, guint property_id, priv->value_value = g_value_get_int64(value); if (priv->value_value >= priv->minvalue) { gchar size_text[32]; - g_snprintf(size_text, sizeof(size_text), "%li", priv->value_value); + g_snprintf(size_text, sizeof(size_text), "%ld", priv->value_value); g_object_set(object, "text", size_text, NULL); } else { g_object_set(object, "text", "", NULL); diff --git a/src/trg-remote-prefs-dialog.c b/src/trg-remote-prefs-dialog.c index 181ba95..7fecd9b 100644 --- a/src/trg-remote-prefs-dialog.c +++ b/src/trg-remote-prefs-dialog.c @@ -242,7 +242,7 @@ static gboolean on_blocklist_updated(gpointer data) { if (response->status == CURLE_OK) { JsonObject *args = get_arguments(response->obj); - gchar *labelText = g_strdup_printf(_("Blocklist (%li entries)"), + gchar *labelText = g_strdup_printf(_("Blocklist (%ld entries)"), json_object_get_int_member(args, SGET_BLOCKLIST_SIZE)); gtk_button_set_label(GTK_BUTTON(priv->blocklist_check), labelText); g_free(labelText); @@ -314,7 +314,7 @@ static GtkWidget *trg_rprefs_connPage(TrgRemotePrefsDialog * win, w = trg_json_widget_check_new(&priv->widgets, s, SGET_LPD_ENABLED, _("Local peer discovery"), NULL); hig_workarea_add_wide_control(t, &row, w); - stringValue = g_strdup_printf(_("Blocklist (%li entries)"), + stringValue = g_strdup_printf(_("Blocklist (%ld entries)"), session_get_blocklist_size(s)); tb = priv->blocklist_check = trg_json_widget_check_new(&priv->widgets, s, SGET_BLOCKLIST_ENABLED, stringValue, NULL); g_free((gchar *) stringValue); diff --git a/src/trg-stats-dialog.c b/src/trg-stats-dialog.c index 5f22cc2..98c8606 100644 --- a/src/trg-stats-dialog.c +++ b/src/trg-stats-dialog.c @@ -145,9 +145,9 @@ static void update_int_stat(JsonObject * args, GtkTreeRowReference * rr, gchar session_val[32]; gchar cumulat_val[32]; - g_snprintf(session_val, sizeof(session_val), "%li", + g_snprintf(session_val, sizeof(session_val), "%ld", json_object_get_int_member(get_session_arg(args), jsonKey)); - g_snprintf(cumulat_val, sizeof(cumulat_val), "%li", + g_snprintf(cumulat_val, sizeof(cumulat_val), "%ld", json_object_get_int_member(get_cumulat_arg(args), jsonKey)); update_statistic(rr, session_val, cumulat_val); @@ -232,7 +232,7 @@ char *tr_strltime_long(char *buf, long seconds, size_t buflen) g_snprintf(m, sizeof(m), ngettext("%d minute", "%d minutes", minutes), minutes); g_snprintf(s, sizeof(s), - ngettext("%li second", "%li seconds", seconds), seconds); + ngettext("%ld second", "%ld seconds", seconds), seconds); if (days) { if (days >= 4 || !hours) { |