diff options
author | Alan Fitton <ajf@eth0.org.uk> | 2011-09-20 07:27:32 +0000 |
---|---|---|
committer | Alan Fitton <ajf@eth0.org.uk> | 2011-09-20 07:27:32 +0000 |
commit | 4f49e799327b55be29028c392a8a8ee4ed921c83 (patch) | |
tree | e3cb8e4e380632a6af94768e82b1c5eed442ae38 /src/trg-remote-prefs-dialog.c | |
parent | 57e72b33977d864863b90c893c913eb268e2f997 (diff) |
use the gint64 format specifier %li, not %ld (long). hopefully silence the last remaining compiler warnings that I've seen (only on 32bit).
Diffstat (limited to 'src/trg-remote-prefs-dialog.c')
-rw-r--r-- | src/trg-remote-prefs-dialog.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/trg-remote-prefs-dialog.c b/src/trg-remote-prefs-dialog.c index 7fecd9b..181ba95 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 (%ld entries)"), + gchar *labelText = g_strdup_printf(_("Blocklist (%li 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 (%ld entries)"), + stringValue = g_strdup_printf(_("Blocklist (%li 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); |