mirror of
https://github.com/php/php-src.git
synced 2024-09-21 18:07:23 +00:00
Fix some warnings
This commit is contained in:
parent
4a60eed469
commit
d9a86285f6
@ -113,6 +113,7 @@ typedef struct _sapi_post_content_type_reader {
|
|||||||
|
|
||||||
|
|
||||||
SAPI_API void sapi_startup(sapi_module_struct *sf);
|
SAPI_API void sapi_startup(sapi_module_struct *sf);
|
||||||
|
SAPI_API void sapi_shutdown(void);
|
||||||
SAPI_API void sapi_activate(SLS_D);
|
SAPI_API void sapi_activate(SLS_D);
|
||||||
SAPI_API void sapi_deactivate(SLS_D);
|
SAPI_API void sapi_deactivate(SLS_D);
|
||||||
|
|
||||||
|
@ -58,6 +58,8 @@ static char sccsid[] = "@(#)merge.c 8.2 (Berkeley) 2/14/94";
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
|
#include "php.h"
|
||||||
|
|
||||||
#if (WINNT|WIN32)
|
#if (WINNT|WIN32)
|
||||||
#include <winsock.h> /* Includes definition for u_char */
|
#include <winsock.h> /* Includes definition for u_char */
|
||||||
#endif
|
#endif
|
||||||
|
@ -2,6 +2,8 @@
|
|||||||
#include "SAPI.h"
|
#include "SAPI.h"
|
||||||
#include "rfc1867.h"
|
#include "rfc1867.h"
|
||||||
|
|
||||||
|
#include "php_content_types.h"
|
||||||
|
|
||||||
static sapi_post_content_type_reader php_post_content_types[] = {
|
static sapi_post_content_type_reader php_post_content_types[] = {
|
||||||
{ MULTIPART_CONTENT_TYPE, sizeof(MULTIPART_CONTENT_TYPE)-1, rfc1867_post_reader },
|
{ MULTIPART_CONTENT_TYPE, sizeof(MULTIPART_CONTENT_TYPE)-1, rfc1867_post_reader },
|
||||||
{ NULL, 0, NULL }
|
{ NULL, 0, NULL }
|
||||||
@ -19,7 +21,7 @@ SAPI_POST_READER_FUNC(php_default_post_reader)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
int php_startup_SAPI_content_types()
|
int php_startup_SAPI_content_types(void)
|
||||||
{
|
{
|
||||||
sapi_register_post_readers(php_post_content_types);
|
sapi_register_post_readers(php_post_content_types);
|
||||||
sapi_register_default_post_reader(php_default_post_reader);
|
sapi_register_default_post_reader(php_default_post_reader);
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
#ifndef _PHP_CONTENT_TYPES_H
|
#ifndef _PHP_CONTENT_TYPES_H
|
||||||
#define _PHP_CONTENT_TYPES_H
|
#define _PHP_CONTENT_TYPES_H
|
||||||
|
|
||||||
|
SAPI_POST_READER_FUNC(php_default_post_reader);
|
||||||
int php_startup_SAPI_content_types(void);
|
int php_startup_SAPI_content_types(void);
|
||||||
|
|
||||||
#endif /* _PHP_CONTENT_TYPES_H */
|
#endif /* _PHP_CONTENT_TYPES_H */
|
||||||
|
Loading…
Reference in New Issue
Block a user