Fix some warnings when using -Wformat-security on Alpine.

This commit is contained in:
William Pitcock 2012-01-25 13:22:35 -06:00
parent 4862f41a02
commit 32ea9d3d83
2 changed files with 3 additions and 3 deletions

View file

@ -117,7 +117,7 @@ typedef enum
}
ReportType;
#define sendheader(c, r) sendto_one_notice(c, HeaderMessages[(r)])
#define sendheader(c, r) sendto_one_notice(c, "%s", HeaderMessages[(r)])
static rb_dlink_list auth_poll_list;
static rb_bh *auth_heap;

View file

@ -455,12 +455,12 @@ ssl_process_cmd_recv(ssl_ctl_t * ctl)
break;
case 'I':
ssl_ok = 0;
ilog(L_MAIN, cannot_setup_ssl);
ilog(L_MAIN, "%s", cannot_setup_ssl);
sendto_realops_snomask(SNO_GENERAL, L_ALL, cannot_setup_ssl);
case 'U':
zlib_ok = 0;
ssl_ok = 0;
ilog(L_MAIN, no_ssl_or_zlib);
ilog(L_MAIN, "%s", no_ssl_or_zlib);
sendto_realops_snomask(SNO_GENERAL, L_ALL, no_ssl_or_zlib);
ssl_killall();
break;