]> granicus.if.org Git - apache/commitdiff
fix minor prototype inconsistencies noticed with C::Scan
authorDoug MacEachern <dougm@apache.org>
Sun, 4 Feb 2001 03:00:15 +0000 (03:00 +0000)
committerDoug MacEachern <dougm@apache.org>
Sun, 4 Feb 2001 03:00:15 +0000 (03:00 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87970 13f79535-47bb-0310-9956-ffa450edef68

include/http_config.h
include/http_connection.h
include/http_core.h
include/http_log.h
include/http_protocol.h
include/http_request.h

index 78ba9de08168c1f1d656dd93be05014488141cf4..4122b5d26a5bd57f64487d04af4654ce740ad3be 100644 (file)
@@ -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.
index 1af06390a37d252f85f735d2c10969601b81e7e2..82c3135e6e29af3d2f271d6faa1404770fb22e43 100644 (file)
@@ -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
 }
index 44dadeea87574d393c01a1f25922b6ad58e7e1bf..7ac253f8689dd1274f9b9d1031e0c458caf132a7 100644 (file)
@@ -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)
 /* 
index 10edf0dcd4f261349ee2106d4aa64c3c2d7a0089..322f83ffc84410ba7d7e7d52f9c85535b83679ec 100644 (file)
@@ -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
index f1231ddcee3064047774e9d62f74c45c6bb8b92e..8071e91a43e26bf5a7132a01531245940eb73e78 100644 (file)
@@ -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;
 /**
index 911438a2f4816dca7c5079b6fe0d22b8eb15239b..ac8d308863effb2b43fb43a3373bcf0a4cc249ad 100644 (file)
@@ -249,7 +249,7 @@ AP_DECLARE(void) ap_die(int type, request_rec *r);
  * @return OK, DECLINED, or HTTP_...
  * @deffunc int ap_run_translate_name(request_rec *r)
  */
-AP_DECLARE_HOOK(int,translate_name,(request_rec *))
+AP_DECLARE_HOOK(int,translate_name,(request_rec *r))
 
 /**
  * This hook allows modules to check the authentication information sent with
@@ -258,7 +258,7 @@ AP_DECLARE_HOOK(int,translate_name,(request_rec *))
  * @return OK, DECLINED, or HTTP_...
  * @deffunc int ap_run_check_user_id(request_rec *r)
  */
-AP_DECLARE_HOOK(int,check_user_id,(request_rec *))
+AP_DECLARE_HOOK(int,check_user_id,(request_rec *r))
 
 /**
  * Allows modules to perform module-specific fixing of header fields.  This
@@ -267,7 +267,7 @@ AP_DECLARE_HOOK(int,check_user_id,(request_rec *))
  * @return OK, DECLINED, or HTTP_...
  * @deffunc int ap_run_fixups(request_rec *r)
  */
-AP_DECLARE_HOOK(int,fixups,(request_rec *))
+AP_DECLARE_HOOK(int,fixups,(request_rec *r))
  
 /**
  * This routine is called to determine and/or set the various document type
@@ -277,7 +277,7 @@ AP_DECLARE_HOOK(int,fixups,(request_rec *))
  * @return OK, DECLINED, or HTTP_...
  * @deffunc int ap_run_type_checker(request_rec *r)
  */
-AP_DECLARE_HOOK(int,type_checker,(request_rec *))
+AP_DECLARE_HOOK(int,type_checker,(request_rec *r))
 
 /**
  * This routine is called to check for any module-specific restrictions placed
@@ -286,7 +286,7 @@ AP_DECLARE_HOOK(int,type_checker,(request_rec *))
  * @return OK, DECLINED, or HTTP_...
  * @deffunc int ap_run_access_checker(request_rec *r)
  */
-AP_DECLARE_HOOK(int,access_checker,(request_rec *))
+AP_DECLARE_HOOK(int,access_checker,(request_rec *r))
 
 /**
  * This routine is called to check to see if the resource being requested
@@ -295,14 +295,14 @@ AP_DECLARE_HOOK(int,access_checker,(request_rec *))
  * @return OK, DECLINED, or HTTP_...
  * @deffunc int ap_run_auth_checker(request_rec *r)
  */
-AP_DECLARE_HOOK(int,auth_checker,(request_rec *))
+AP_DECLARE_HOOK(int,auth_checker,(request_rec *r))
 
 /**
  * This hook allows modules to insert filters for the current request
  * @param r the current request
  * @deffunc void ap_run_insert_filter(request_rec *r)
  */
-AP_DECLARE_HOOK(void,insert_filter,(request_rec *))
+AP_DECLARE_HOOK(void,insert_filter,(request_rec *r))
 
 #ifdef __cplusplus
 }