Commit a9c6e70c authored by Doug MacEachern's avatar Doug MacEachern
Browse files

fix minor prototype inconsistencies noticed with C::Scan


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87970 13f79535-47bb-0310-9956-ffa450edef68
parent 080e68df
Loading
Loading
Loading
Loading
+9 −9
Original line number Diff line number Diff line
@@ -469,8 +469,8 @@ AP_DECLARE(void) ap_set_module_config(void *conf_vector, module *m, void *val);
 * @return An error string or NULL on success
 * @deffunc const char *ap_set_string_slot(cmd_parms *cmd, void *struct_ptr, const char *arg)
 */
AP_DECLARE_NONSTD(const char *) ap_set_string_slot(cmd_parms *, void *,
						   const char *);
AP_DECLARE_NONSTD(const char *) ap_set_string_slot(cmd_parms *cmd, void *struct_ptr,
						   const char *arg);

/**
 * Return true if the specified method is limited by being listed in
@@ -494,8 +494,8 @@ AP_DECLARE(int) ap_method_is_limited(cmd_parms *cmd, const char *method);
 * @return An error string or NULL on success
 * @deffunc const char *ap_set_string_slot_lower(cmd_parms *cmd, void *struct_ptr, const char *arg)
 */
AP_DECLARE_NONSTD(const char *) ap_set_string_slot_lower(cmd_parms *, 
							 void *, const char *);
AP_DECLARE_NONSTD(const char *) ap_set_string_slot_lower(cmd_parms *cmd, 
							 void *struct_ptr, const char *arg);
/**
 * Generic command handling function for flags
 * @param cmd The command parameters for this directive
@@ -504,7 +504,7 @@ AP_DECLARE_NONSTD(const char *) ap_set_string_slot_lower(cmd_parms *,
 * @return An error string or NULL on success
 * @deffunc const char *ap_set_flag_slot(cmd_parms *cmd, void *struct_ptr, int arg)
 */
AP_DECLARE_NONSTD(const char *) ap_set_flag_slot(cmd_parms *, void *, int);
AP_DECLARE_NONSTD(const char *) ap_set_flag_slot(cmd_parms *cmd, void *struct_ptr, int arg);
/**
 * Generic command handling function for files
 * @param cmd The command parameters for this directive
@@ -513,7 +513,7 @@ AP_DECLARE_NONSTD(const char *) ap_set_flag_slot(cmd_parms *, void *, int);
 * @return An error string or NULL on success
 * @deffunc const char *ap_set_file_slot(cmd_parms *cmd, void *struct_ptr, const char *arg)
 */
AP_DECLARE_NONSTD(const char *) ap_set_file_slot(cmd_parms *, void *, const char *);
AP_DECLARE_NONSTD(const char *) ap_set_file_slot(cmd_parms *cmd, void *struct_ptr, const char *arg);

/**
 * For modules which need to read config files, open logs, etc. ...
@@ -589,7 +589,7 @@ AP_DECLARE(module *) ap_find_linked_module(const char *name);
 * @param name the name of the file to open
 * @deffunc apr_status_t ap_pcfg_openfile(configfile_t **ret_cfg, apr_pool_t *p, const char *name)
 */
AP_DECLARE(apr_status_t) ap_pcfg_openfile(configfile_t **, apr_pool_t *p, const char *name);
AP_DECLARE(apr_status_t) ap_pcfg_openfile(configfile_t **ret_cfg, apr_pool_t *p, const char *name);

/**
 * Allocate a configfile_t handle with user defined functions and params 
@@ -951,7 +951,7 @@ AP_CORE_DECLARE(void *) ap_set_config_vectors(cmd_parms *parms, void *config, mo
 * @return OK or DECLINED
 * @deffunc int ap_run_header_parser(request_rec *r)
 */
AP_DECLARE_HOOK(int,header_parser,(request_rec *))
AP_DECLARE_HOOK(int,header_parser,(request_rec *r))

/**
 * Run the pre_config function for each module
@@ -999,7 +999,7 @@ AP_DECLARE_HOOK(void,child_init,(apr_pool_t *pchild, server_rec *s))
 * @tip non-wildcard handlers should HOOK_MIDDLE, wildcard HOOK_LAST
 * @deffunc void ap_run_handler(request_rec *r)
 */
AP_DECLARE_HOOK(int,handler,(request_rec *))
AP_DECLARE_HOOK(int,handler,(request_rec *r))

/**
 * Retrieve the optional functions for each module.
+2 −2
Original line number Diff line number Diff line
@@ -129,7 +129,7 @@ void ap_lingering_close(conn_rec *);
 * @return OK or DECLINED
 * @deffunc int ap_run_pre_connection(conn_rec *c)
 */
AP_DECLARE_HOOK(int,pre_connection,(conn_rec *))
AP_DECLARE_HOOK(int,pre_connection,(conn_rec *c))

/**
 * This hook implements different protocols.  After a connection has been
@@ -140,7 +140,7 @@ AP_DECLARE_HOOK(int,pre_connection,(conn_rec *))
 * @return OK or DECLINED
 * @deffunc int ap_run_process_connection(conn_rec *c)
 */
AP_DECLARE_HOOK(int,process_connection,(conn_rec *))
AP_DECLARE_HOOK(int,process_connection,(conn_rec *c))

#ifdef __cplusplus
}
+7 −7
Original line number Diff line number Diff line
@@ -137,21 +137,21 @@ extern "C" {
 * @return the Options bitmask
 * @deffunc int ap_allow_options(request_rec *r)
 */
AP_DECLARE(int) ap_allow_options (request_rec *);
AP_DECLARE(int) ap_allow_options (request_rec *r);
/**
 * Retrieve the value of the AllowOverride for this request
 * @param r The current request
 * @return the overrides bitmask
 * @deffunc int ap_allow_overrides(request_rec *r)
 */
AP_DECLARE(int) ap_allow_overrides (request_rec *);
AP_DECLARE(int) ap_allow_overrides (request_rec *r);
/**
 * Retrieve the value of the DefaultType directive, or text/plain if not set
 * @param r The current request
 * @return The default type
 * @deffunc const char *ap_default_type(request_rec *r)
 */
AP_DECLARE(const char *) ap_default_type (request_rec *);     
AP_DECLARE(const char *) ap_default_type (request_rec *r);     
/**
 * Retrieve the document root for this server
 * @param r The current request
@@ -160,7 +160,7 @@ AP_DECLARE(const char *) ap_default_type (request_rec *);
 * @return The document root
 * @deffunc const char *ap_document_root(request_rec *r)
 */
AP_DECLARE(const char *) ap_document_root (request_rec *);
AP_DECLARE(const char *) ap_document_root (request_rec *r);
/**
 * Lookup the remote client's DNS name or IP address
 * @param conn The current connection
@@ -274,14 +274,14 @@ struct require_line {
 * @return The authorization required
 * @deffunc const char *ap_auth_type(request_rec *r)
 */
AP_DECLARE(const char *) ap_auth_type (request_rec *);
AP_DECLARE(const char *) ap_auth_type (request_rec *r);
/**
 * Return the current Authorization realm
 * @param r The current request
 * @return The current authorization realm
 * @deffunc const char *ap_auth_name(request_rec *r)
 */
AP_DECLARE(const char *) ap_auth_name (request_rec *);     
AP_DECLARE(const char *) ap_auth_name (request_rec *r);     
/**
 * How the requires lines must be met.
 * @param r The current request
@@ -300,7 +300,7 @@ AP_DECLARE(int) ap_satisfies (request_rec *r);
 * @return An array of all requires directives for this request
 * @deffunc const apr_array_header_t *ap_requires(request_rec *r)
 */
AP_DECLARE(const apr_array_header_t *) ap_requires (request_rec *);    
AP_DECLARE(const apr_array_header_t *) ap_requires (request_rec *r);    

#if defined(WIN32)
/* 
+2 −2
Original line number Diff line number Diff line
@@ -213,7 +213,7 @@ AP_DECLARE(void) ap_log_rerror(const char *file, int line, int level,
 * @param s The current server
 * @deffunc void ap_error_log2stderr(server_rec *s)
 */
AP_DECLARE(void) ap_error_log2stderr (server_rec *);
AP_DECLARE(void) ap_error_log2stderr (server_rec *s);

/**
 * Log the current pid of the parent process
@@ -257,7 +257,7 @@ AP_DECLARE(piped_log *) ap_open_piped_log (apr_pool_t *p, const char *program);
 * @param pl The piped log structure
 * @deffunc void ap_close_piped_log(piped_log *pl)
 */
AP_DECLARE(void) ap_close_piped_log (piped_log *);
AP_DECLARE(void) ap_close_piped_log (piped_log *pl);

/**
 * A macro to access the read side of the piped log pipe
+4 −4
Original line number Diff line number Diff line
@@ -527,7 +527,7 @@ AP_DECLARE(const char *) ap_method_name_of(int methnum);
 * @return OK or DECLINED
 * @deffunc ap_run_post_read_request(request_rec *r)
 */
AP_DECLARE_HOOK(int,post_read_request,(request_rec *))
AP_DECLARE_HOOK(int,post_read_request,(request_rec *r))
/**
 * This hook allows modules to perform any module-specific logging activities
 * over and above the normal server things.
@@ -535,7 +535,7 @@ AP_DECLARE_HOOK(int,post_read_request,(request_rec *))
 * @return OK, DECLINED, or HTTP_...
 * @deffunc int ap_run_log_transaction(request_rec *r)
 */
AP_DECLARE_HOOK(int,log_transaction,(request_rec *))
AP_DECLARE_HOOK(int,log_transaction,(request_rec *r))
/**
 * This hook allows modules to retrieve the http method from a request.  This
 * allows Apache modules to easily extend the methods that Apache understands
@@ -543,14 +543,14 @@ AP_DECLARE_HOOK(int,log_transaction,(request_rec *))
 * @return The http method from the request
 * @deffunc const char *ap_run_http_method(const request_rec *r)
 */
AP_DECLARE_HOOK(const char *,http_method,(const request_rec *))
AP_DECLARE_HOOK(const char *,http_method,(const request_rec *r))
/**
 * Return the default port from the current request
 * @param r The current request
 * @return The current port
 * @deffunc apr_port_t ap_run_default_port(const request_rec *r)
 */
AP_DECLARE_HOOK(apr_port_t,default_port,(const request_rec *))
AP_DECLARE_HOOK(apr_port_t,default_port,(const request_rec *r))

typedef struct ap_bucket_error ap_bucket_error;
/**
Loading