Fix missing format-strings to avoid compiler warnings

This commit is contained in:
Stefan Gehn 2010-09-23 15:06:21 +00:00
parent 8dbee76730
commit d36c3ec662
2 changed files with 2 additions and 2 deletions

View File

@ -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, "<error>\n");
gkrellmd_send_to_client(client, buf);
return FALSE;

View File

@ -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
}