Fix missing format-strings to avoid compiler warnings
This commit is contained in:
parent
8dbee76730
commit
d36c3ec662
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue