From f3e164b397a936f036dc16d0d83bfd4792b8384f Mon Sep 17 00:00:00 2001 From: Unbit Date: Thu, 26 Dec 2013 18:57:52 +0100 Subject: [PATCH] fixed return value in hv_store --- plugins/psgi/psgi_plugin.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/psgi/psgi_plugin.c b/plugins/psgi/psgi_plugin.c index ac587687..eb8755e7 100644 --- a/plugins/psgi/psgi_plugin.c +++ b/plugins/psgi/psgi_plugin.c @@ -893,7 +893,7 @@ static void uwsgi_perl_add_item(char *key, uint16_t keylen, char *val, uint16_t HV *spool_dict = (HV*) data; - hv_store(spool_dict, key, keylen, newSVpv(val, vallen), 0); + (void)hv_store(spool_dict, key, keylen, newSVpv(val, vallen), 0); } @@ -914,10 +914,10 @@ static int uwsgi_perl_spooler(char *filename, char *buf, uint16_t len, char *bod return 0; } - hv_store(spool_dict, "spooler_task_name", 18, newSVpv(filename, 0), 0); + (void) hv_store(spool_dict, "spooler_task_name", 18, newSVpv(filename, 0), 0); if (body && body_len > 0) { - hv_store(spool_dict, "body", 4, newSVpv(body, body_len), 0); + (void) hv_store(spool_dict, "body", 4, newSVpv(body, body_len), 0); } XPUSHs( sv_2mortal((SV*)newRV_noinc((SV*)spool_dict)) );