From d36c3ec6621aae7606267d73709badcc23b132b3 Mon Sep 17 00:00:00 2001 From: Stefan Gehn Date: Thu, 23 Sep 2010 15:06:21 +0000 Subject: [PATCH] Fix missing format-strings to avoid compiler warnings --- server/main.c | 2 +- src/main.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/server/main.c b/server/main.c index 4be8cab..9879a67 100644 --- a/server/main.c +++ b/server/main.c @@ -502,7 +502,7 @@ allow_host(GkrellmdClient *client, struct sockaddr *sa, socklen_t salen) snprintf(buf, sizeof(buf), _("Connection not allowed from %s\n"), hostname ? hostname : addr); - g_warning(buf), + g_warning("%s", buf), gkrellmd_send_to_client(client, "\n"); gkrellmd_send_to_client(client, buf); return FALSE; diff --git a/src/main.c b/src/main.c index a5f797a..55f5f5f 100644 --- a/src/main.c +++ b/src/main.c @@ -1854,7 +1854,7 @@ usage() gint i; for (i = 0; i < (sizeof(usage_string) / sizeof(gchar *)); ++i) - g_print(_(usage_string[i])); + g_print("%s", _(usage_string[i])); #endif }