diff --git a/core/legion.c b/core/legion.c index 21db6536..ddd0c4a1 100644 --- a/core/legion.c +++ b/core/legion.c @@ -255,8 +255,7 @@ static void *legion_loop(void *foobar) { int uwsgi_legion_action_call(char *phase, struct uwsgi_legion *ul, struct uwsgi_string_list *usl) { struct uwsgi_legion_action *ula = uwsgi_legion_action_get(usl->custom_ptr); if (!ula) { - //FIXME core/legion.c:258: error: format ‘%s’ expects type ‘char *’, but argument 2 has type ‘void *’ - uwsgi_log("[uwsgi-legion] ERROR unable to find legion_action \"%s\"\n", usl->custom_ptr); + uwsgi_log("[uwsgi-legion] ERROR unable to find legion_action \"%s\"\n", (char *) usl->custom_ptr); return -1; } diff --git a/core/master.c b/core/master.c index 300c7e16..f0e1dc6b 100644 --- a/core/master.c +++ b/core/master.c @@ -85,8 +85,7 @@ void uwsgi_master_manage_udp(int udp_fd) { // else a simple udp logger if (!udp_managed) { - //FIXME error: field precision should have type ‘int’, but argument 4 has type ‘ssize_t’ - uwsgi_log("[udp:%s:%d] %.*s", udp_client_addr, ntohs(udp_client.sin_port), rlen, uwsgi.wsgi_req->buffer); + uwsgi_log("[udp:%s:%d] %.*s", udp_client_addr, ntohs(udp_client.sin_port), (int) rlen, uwsgi.wsgi_req->buffer); } } } diff --git a/plugins/psgi/psgi_loader.c b/plugins/psgi/psgi_loader.c index d05e7d98..fb1d5626 100644 --- a/plugins/psgi/psgi_loader.c +++ b/plugins/psgi/psgi_loader.c @@ -197,8 +197,7 @@ XS(XS_error_print) { if (items > 1) { body = SvPV(ST(1), blen); - //FIXME error: field precision should have type ‘int’, but argument 2 has type ‘STRLEN’ - uwsgi_log("%.*s", blen, body); + uwsgi_log("%.*s", (int) blen, body); } XSRETURN(0);