Costmetic changes after review for sense of OK (should be zero)
This commit is contained in:
parent
ca29783785
commit
d7372fbdbc
@ -246,7 +246,7 @@ static int handle_script(struct httpd_state *pstate)
|
||||
|
||||
send(pstate->ht_sockfd, pstate->ht_file.data, pstate->ht_file.len, 0);
|
||||
|
||||
httpd_close(&pstate->ht_file);
|
||||
(void)httpd_close(&pstate->ht_file);
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -306,6 +306,7 @@ static int handle_script(struct httpd_state *pstate)
|
||||
pstate->ht_file.len -= len;
|
||||
}
|
||||
}
|
||||
|
||||
return OK;
|
||||
}
|
||||
#endif
|
||||
@ -514,7 +515,6 @@ static int httpd_sendfile(struct httpd_state *pstate)
|
||||
}
|
||||
|
||||
ret = handle_script(pstate);
|
||||
|
||||
goto done;
|
||||
}
|
||||
#endif
|
||||
@ -531,9 +531,7 @@ static int httpd_sendfile(struct httpd_state *pstate)
|
||||
#endif
|
||||
|
||||
done:
|
||||
|
||||
(void)httpd_close(&pstate->ht_file);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user