fixed FIXME for #79

This commit is contained in:
root
2012-12-07 11:18:33 +01:00
parent d598a10013
commit 41af8e54bb
3 changed files with 3 additions and 6 deletions
+1 -2
View File
@@ -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;
}
+1 -2
View File
@@ -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);
}
}
}
+1 -2
View File
@@ -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);