mirror of
https://github.com/clearlinux/uwsgi.git
synced 2026-09-06 13:41:28 +00:00
fixed FIXME for #79
This commit is contained in:
+1
-2
@@ -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
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user