summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2018-09-24 18:20:53 (EDT)
committer P. J. McDermott <pj@pehjota.net>2018-09-24 18:20:53 (EDT)
commit184299e661052f99e246c90e4dc2debe9722d66b (patch)
treeaf62ce1fa0ae9e8035e7cd6c200f367fa4c17ecd
parent5448e4bb073358c258ad9ad6e570123f32feac64 (diff)
downloadmarquee-184299e661052f99e246c90e4dc2debe9722d66b.zip
marquee-184299e661052f99e246c90e4dc2debe9722d66b.tar.gz
marquee-184299e661052f99e246c90e4dc2debe9722d66b.tar.bz2
Fix signedness of printf format specifiers
-rw-r--r--src/application.c4
-rw-r--r--src/tab-label.c2
-rw-r--r--src/web-view-schemes/normal.c2
-rw-r--r--src/window.c4
4 files changed, 6 insertions, 6 deletions
diff --git a/src/application.c b/src/application.c
index cf1fe07..fcb0867 100644
--- a/src/application.c
+++ b/src/application.c
@@ -173,8 +173,8 @@ mq_application_quit(MqApplication *application, GtkWindow *parent)
}
/* Message */
- msg_tabs = g_strdup_printf(PL_("%d tab", "%d tabs", tabs), tabs);
- msg_wins = g_strdup_printf(PL_("%d window", "%d windows", wins), wins);
+ msg_tabs = g_strdup_printf(PL_("%u tab", "%u tabs", tabs), tabs);
+ msg_wins = g_strdup_printf(PL_("%u window", "%u windows", wins), wins);
/* TRANSLATORS: The "%s" conversion specifications are translations of
either "%d tab" or "%d tabs" and either "%d window" or "%d windows".
*/
diff --git a/src/tab-label.c b/src/tab-label.c
index 3680078..fd4b7b4 100644
--- a/src/tab-label.c
+++ b/src/tab-label.c
@@ -168,7 +168,7 @@ update_label(MqTabLabel *tab_label)
title = tab_label->scrolling ? tab_label->scrolled_title :
tab_label->title;
- label = g_strdup_printf("%d. %s", tab_label->position, title);
+ label = g_strdup_printf("%u. %s", tab_label->position, title);
gtk_label_set_text(GTK_LABEL(tab_label->label), label);
gtk_widget_set_tooltip_text(GTK_WIDGET(tab_label), label);
g_free(label);
diff --git a/src/web-view-schemes/normal.c b/src/web-view-schemes/normal.c
index 12b2582..f053cb2 100644
--- a/src/web-view-schemes/normal.c
+++ b/src/web-view-schemes/normal.c
@@ -270,7 +270,7 @@ menu_view_source_activate_cb(GtkAction G_GNUC_UNUSED *action,
mq_notebook_insert_child(
MQ_NOTEBOOK(gtk_widget_get_parent(GTK_WIDGET(
mq_web_view_get_tab_page(web_view)))),
- g_strdup_printf("view-source:origin-tab=%" PRId64 "&uri=%s",
+ g_strdup_printf("view-source:origin-tab=%" PRIu64 "&uri=%s",
mq_tab_page_get_id(mq_web_view_get_tab_page(web_view)),
mq_web_view_get_uri(web_view)),
mq_web_view_get_tab_page(web_view),
diff --git a/src/window.c b/src/window.c
index 56f166c..d472ed5 100644
--- a/src/window.c
+++ b/src/window.c
@@ -124,9 +124,9 @@ delete_event_cb(MqWindow *window, GdkEvent G_GNUC_UNUSED *event)
/* The number of tabs is always greater than 1, but some non-English
* languages pluralize nouns differently depending on the number. */
message = g_strdup_printf(PL_(
- "You are about to close %d tab. "
+ "You are about to close %u tab. "
"Are you sure you want to continue?",
- "You are about to close %d tabs. "
+ "You are about to close %u tabs. "
"Are you sure you want to continue?",
num_tabs), num_tabs);
message_label = gtk_label_new(message);