Skip to content

Commit 45f9527

Browse files
committed
More maintainer-mode cleanups
1 parent dfd0f88 commit 45f9527

File tree

2 files changed

+27
-10
lines changed

2 files changed

+27
-10
lines changed

main/php_content_types.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#ifndef _PHP_CONTENT_TYPES_H
22
#define _PHP_CONTENT_TYPES_H
33

4-
int php_startup_SAPI_content_types();
4+
int php_startup_SAPI_content_types(void);
55

66
#endif /* _PHP_CONTENT_TYPES_H */

sapi/apache/mod_php4.c

Lines changed: 26 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,29 @@
5858
#endif
5959

6060
PHPAPI int apache_php_module_main(request_rec *r, int fd, int display_source_mode SLS_DC);
61+
void php_save_umask(void);
62+
void php_restore_umask(void);
63+
int sapi_apache_read_post(char *buffer, uint count_bytes SLS_DC);
64+
char *sapi_apache_read_cookies(SLS_D);
65+
int sapi_apache_header_handler(sapi_header_struct *sapi_header, sapi_headers_struct *sapi_headers SLS_DC);
66+
int sapi_apache_send_headers(sapi_headers_struct *sapi_headers SLS_DC);
67+
int send_php(request_rec *r, int display_source_mode, char *filename);
68+
int send_parsed_php(request_rec * r);
69+
int send_parsed_php_source(request_rec * r);
70+
int php_xbithack_handler(request_rec * r);
71+
void php_init_handler(server_rec *s, pool *p);
72+
73+
#if MODULE_MAGIC_NUMBER > 19961007
74+
#define CONST_PREFIX const
75+
#else
76+
#define CONST_PREFIX
77+
#endif
78+
CONST_PREFIX char *php_apache_value_handler_ex(cmd_parms *cmd, HashTable *conf, char *arg1, char *arg2, int mode);
79+
CONST_PREFIX char *php_apache_value_handler(cmd_parms *cmd, HashTable *conf, char *arg1, char *arg2);
80+
CONST_PREFIX char *php_apache_admin_value_handler(cmd_parms *cmd, HashTable *conf, char *arg1, char *arg2);
81+
CONST_PREFIX char *php_apache_flag_handler(cmd_parms *cmd, HashTable *conf, char *arg1, char *arg2);
82+
CONST_PREFIX char *php_apache_flag_handler_ex(cmd_parms *cmd, HashTable *conf, char *arg1, char *arg2, int mode);
83+
CONST_PREFIX char *php_apache_admin_flag_handler(cmd_parms *cmd, HashTable *conf, char *arg1, char *arg2);
6184

6285
/* ### these should be defined in mod_php4.h or somewhere else */
6386
#define USE_PATH 1
@@ -94,7 +117,7 @@ php_apache_info_struct php_apache_info; /* active config */
94117

95118
/* some systems are missing these from their header files */
96119

97-
void php_save_umask()
120+
void php_save_umask(void)
98121
{
99122
saved_umask = umask(077);
100123
umask(saved_umask);
@@ -208,7 +231,7 @@ sapi_module_struct sapi_module = {
208231
};
209232

210233

211-
void php_restore_umask()
234+
void php_restore_umask(void)
212235
{
213236
umask(saved_umask);
214237
}
@@ -399,12 +422,6 @@ static void *php_merge_dir(pool *p, void *basev, void *addv)
399422
}
400423

401424

402-
#if MODULE_MAGIC_NUMBER > 19961007
403-
#define CONST_PREFIX const
404-
#else
405-
#define CONST_PREFIX
406-
#endif
407-
408425
CONST_PREFIX char *php_apache_value_handler_ex(cmd_parms *cmd, HashTable *conf, char *arg1, char *arg2, int mode)
409426
{
410427
php_per_dir_entry per_dir_entry;
@@ -498,7 +515,7 @@ static void apache_php_module_shutdown_wrapper(void)
498515

499516
void php_init_handler(server_rec *s, pool *p)
500517
{
501-
register_cleanup(p, NULL, (void (*)(void *))apache_php_module_shutdown_wrapper, php_module_shutdown_for_exec);
518+
register_cleanup(p, NULL, (void (*)(void *))apache_php_module_shutdown_wrapper, (void (*)(void *))php_module_shutdown_for_exec);
502519
if (!apache_php_initialized) {
503520
sapi_startup(&sapi_module);
504521
php_module_startup(&sapi_module);

0 commit comments

Comments
 (0)