mirror of
https://github.com/apache/httpd.git
synced 2025-08-01 07:26:57 +03:00
Various code cleanup to avoid compiler, cppcheck, or clang warnings:
modules/debugging/mod_firehose.c: Make some internal functions static (to do: logs_cleanup() is unused) modules/filters/mod_charset_lite.c: Remove dead assignments modules/filters/mod_include.c: likewise modules/metadata/mod_usertrack.c: likewise modules/proxy/mod_proxy_ftp.c: likewise modules/ssl/ssl_engine_pphrase.c: likewise modules/proxy/mod_proxy_balancer.c: likewise; Remove NULL check that can never happen modules/proxy/proxy_util.c: Axe NULL-check that can never happen and if it would, it would just mask another bug os/unix/unixd.c: likewise modules/http/http_filters.c: Remove sub-condition that is always true modules/lua/mod_lua.c: Add default cases to switch statements modules/generators/mod_autoindex.c: Unsigned value can never be < 0 server/util_expr_eval.c: Fix compiler warnings with VC and on OS2 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1220493 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@ -104,21 +104,21 @@ typedef struct firehose_ctx_t
|
||||
#define BODY_LEN (PIPE_BUF - HEADER_LEN - 2)
|
||||
#define HEADER_FMT "%" APR_UINT64_T_HEX_FMT " %" APR_UINT64_T_HEX_FMT " %c %s %" APR_UINT64_T_HEX_FMT CRLF
|
||||
|
||||
apr_status_t logs_cleanup(void *dummy)
|
||||
static apr_status_t logs_cleanup(void *dummy)
|
||||
{
|
||||
apr_file_t *file = (apr_file_t *) dummy;
|
||||
apr_file_close(file);
|
||||
return APR_SUCCESS;
|
||||
}
|
||||
|
||||
apr_status_t filter_output_cleanup(void *dummy)
|
||||
static apr_status_t filter_output_cleanup(void *dummy)
|
||||
{
|
||||
ap_filter_t *f = (ap_filter_t *) dummy;
|
||||
ap_remove_output_filter(f);
|
||||
return APR_SUCCESS;
|
||||
}
|
||||
|
||||
apr_status_t filter_input_cleanup(void *dummy)
|
||||
static apr_status_t filter_input_cleanup(void *dummy)
|
||||
{
|
||||
ap_filter_t *f = (ap_filter_t *) dummy;
|
||||
ap_remove_input_filter(f);
|
||||
@ -128,7 +128,7 @@ apr_status_t filter_input_cleanup(void *dummy)
|
||||
/**
|
||||
* Add the terminating empty fragment to indicate end-of-connection.
|
||||
*/
|
||||
apr_status_t pumpit_cleanup(void *dummy)
|
||||
static apr_status_t pumpit_cleanup(void *dummy)
|
||||
{
|
||||
firehose_ctx_t *ctx = (firehose_ctx_t *) dummy;
|
||||
apr_status_t rv;
|
||||
|
Reference in New Issue
Block a user