neozeed ircu2.9.32-linux-hacks.diff
This commit is contained in:
@@ -43,8 +43,6 @@ static char sccsid[] = "@(#)s_ping.c 1.0 9/21/94 (C) 1994 Carlo Kid";
|
||||
#define UPINGBUFSIZE 2000 /* Lot bigger then 1024, bit smaller then 2048 */
|
||||
#define UPINGTIMEOUT 120 /* Timeout waitting for first ping response */
|
||||
|
||||
extern u_long inet_addr();
|
||||
|
||||
/*
|
||||
* start_ping
|
||||
*
|
||||
@@ -163,9 +161,9 @@ aClient *cptr;
|
||||
*
|
||||
*/
|
||||
void read_ping(cptr)
|
||||
Reg1 aClient *cptr;
|
||||
aClient *cptr;
|
||||
{
|
||||
int addr_len = sizeof(struct sockaddr_in);
|
||||
socklen_t addr_len = sizeof(struct sockaddr_in);
|
||||
struct sockaddr_in remote_addr;
|
||||
struct timeval tv;
|
||||
int len;
|
||||
@@ -211,7 +209,7 @@ Reg1 aClient *cptr;
|
||||
cptr->since = 2;
|
||||
cptr->firsttime = tv.tv_sec + cptr->since;
|
||||
|
||||
Debug(("read_ping: %d bytes, ti %lu: [%s %s] %u ms",
|
||||
Debug((DEBUG_DEBUG, "read_ping: %d bytes, ti %lu: [%s %s] %u ms",
|
||||
len, cptr->since, (char *)cptr->confs,
|
||||
(char *)cptr->confs + strlen((char *)cptr->confs) + 1, pingtime));
|
||||
|
||||
@@ -273,7 +271,7 @@ int parc;
|
||||
char *parv[];
|
||||
{
|
||||
aConfItem *aconf;
|
||||
int port, fd, opt;
|
||||
int port = 7007, fd, opt;
|
||||
|
||||
if (!IsPrivileged(sptr))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user