60
60
61
61
#include "base64.h"
62
62
#include "file.h"
63
- #include "post.h"
63
+ #include "functions/ post.h"
64
64
#include "url.h"
65
65
#include "fsock.h"
66
66
@@ -96,8 +96,8 @@ struct php3i_sockbuf {
96
96
static struct php3i_sockbuf * phpsockbuf ;
97
97
98
98
static int php3_minit_fsock (INIT_FUNC_ARGS );
99
- static int php3_mshutdown_fsock (void );
100
- static int php3_rshutdown_fsock (void );
99
+ static int php3_mshutdown_fsock (SHUTDOWN_FUNC_ARGS );
100
+ static int php3_rshutdown_fsock (SHUTDOWN_FUNC_ARGS );
101
101
102
102
php3_module_entry fsock_module_entry = {
103
103
"Socket functions" , fsock_functions , php3_minit_fsock , php3_mshutdown_fsock , NULL , php3_rshutdown_fsock , NULL , STANDARD_MODULE_PROPERTIES
@@ -363,7 +363,8 @@ int _php3_sock_fgets(char *buf, int maxlen, int socket)
363
363
sockbuf -> next = phpsockbuf ;
364
364
phpsockbuf = sockbuf ;
365
365
} else {
366
- int needlen = sockbuf -> writepos + buflen ;
366
+ uint needlen = sockbuf -> writepos + buflen ;
367
+
367
368
if (needlen > sockbuf -> readbuflen ) {
368
369
sockbuf -> readbuflen += maxlen ;
369
370
sockbuf -> readbuf = erealloc (sockbuf -> readbuf , sockbuf -> readbuflen );
@@ -440,7 +441,7 @@ static int php3_minit_fsock(INIT_FUNC_ARGS)
440
441
/* }}} */
441
442
/* {{{ php3_mshutdown_fsock */
442
443
443
- static int php3_mshutdown_fsock (void )
444
+ static int php3_mshutdown_fsock (SHUTDOWN_FUNC_ARGS )
444
445
{
445
446
#ifndef THREAD_SAFE
446
447
_php3_hash_destroy (& ht_socks );
@@ -451,7 +452,7 @@ static int php3_mshutdown_fsock(void)
451
452
/* }}} */
452
453
/* {{{ php3_rshutdown_fsock() */
453
454
454
- static int php3_rshutdown_fsock (void )
455
+ static int php3_rshutdown_fsock (SHUTDOWN_FUNC_ARGS )
455
456
{
456
457
struct php3i_sockbuf * sockbuf = phpsockbuf , * this ;
457
458
0 commit comments