|
@@ -809,7 +809,7 @@ int open_address_listen(IP addr, port_t int *port)
|
|
|
/* Returns a socket number for a listening socket that will accept any
|
|
/* Returns a socket number for a listening socket that will accept any
|
|
|
* connection -- port # is returned in port
|
|
* connection -- port # is returned in port
|
|
|
*/
|
|
*/
|
|
|
-__inline__ int open_listen(port_t *port)
|
|
|
|
|
|
|
+inline int open_listen(port_t *port)
|
|
|
{
|
|
{
|
|
|
#ifdef USE_IPV6
|
|
#ifdef USE_IPV6
|
|
|
return open_address_listen(conf.bot->ip ? getmyip() : INADDR_ANY, AF_INET, port);
|
|
return open_address_listen(conf.bot->ip ? getmyip() : INADDR_ANY, AF_INET, port);
|
|
@@ -822,7 +822,7 @@ __inline__ int open_listen(port_t *port)
|
|
|
* the above is being left in for compatibility, and should NOT LONGER BE USED IN THE CORE CODE.
|
|
* the above is being left in for compatibility, and should NOT LONGER BE USED IN THE CORE CODE.
|
|
|
*/
|
|
*/
|
|
|
|
|
|
|
|
-__inline__ int open_listen_by_af(port_t *port, int af_def)
|
|
|
|
|
|
|
+inline int open_listen_by_af(port_t *port, int af_def)
|
|
|
{
|
|
{
|
|
|
#ifdef USE_IPV6
|
|
#ifdef USE_IPV6
|
|
|
return open_address_listen(conf.bot->ip ? getmyip() : INADDR_ANY, af_def, port);
|
|
return open_address_listen(conf.bot->ip ? getmyip() : INADDR_ANY, af_def, port);
|
|
@@ -1212,7 +1212,7 @@ static int sockread(char *s, int *len)
|
|
|
return -3;
|
|
return -3;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-__inline__ static int
|
|
|
|
|
|
|
+inline static int
|
|
|
prand(int *seed, int range)
|
|
prand(int *seed, int range)
|
|
|
{
|
|
{
|
|
|
long long i1;
|
|
long long i1;
|