neozeed ircu2.9.32-linux-hacks.diff

This commit is contained in:
2023-12-26 16:42:36 -05:00
parent ab64084f63
commit 51650c0d78
40 changed files with 718 additions and 720 deletions

View File

@@ -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))
{