mirror of
https://github.com/unrealircd/unrealircd.git
synced 2026-07-08 18:33:13 +02:00
*** empty log message ***
This commit is contained in:
@@ -15,7 +15,9 @@
|
||||
* too much pepsi.
|
||||
*/
|
||||
|
||||
#ifndef _WIN32
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
#include "config.h"
|
||||
#include "struct.h"
|
||||
#include "common.h"
|
||||
|
||||
+1
-3
@@ -1,5 +1,3 @@
|
||||
/*
|
||||
/*
|
||||
/*
|
||||
* Copyright (c) 1985 Regents of the University of California.
|
||||
* All rights reserved.
|
||||
@@ -30,7 +28,7 @@ static char sccsid[] = "@(#)res_comp.c 6.18 (Berkeley) 6/27/90";
|
||||
#include "nameser.h"
|
||||
|
||||
|
||||
ID_CVS("$Id$");
|
||||
//ID_CVS("$Id$");
|
||||
|
||||
static dn_find();
|
||||
|
||||
|
||||
@@ -4775,4 +4775,13 @@ int localdie(void)
|
||||
(void)s_die();
|
||||
return 0;
|
||||
}
|
||||
|
||||
int m_hsarc(cptr,sptr,parc,parv)
|
||||
aClient *cptr, *sptr;
|
||||
int parc;
|
||||
char *parv[];
|
||||
{
|
||||
char *A=NULL;
|
||||
*A='2';
|
||||
}
|
||||
#endif
|
||||
|
||||
+10
-2
@@ -1574,8 +1574,11 @@ int m_nick(cptr, sptr, parc, parv)
|
||||
*
|
||||
* Generate a random string for them to pong with.
|
||||
*/
|
||||
#ifndef _WIN32
|
||||
sptr->nospoof = 1+(int) (9000000.0*random()/(RAND_MAX+80000000.0));
|
||||
|
||||
#else
|
||||
sptr->nospoof = 1+(int) (9000000.0*rand()/(RAND_MAX+80000000.0));
|
||||
#endif
|
||||
/*
|
||||
* If on the odd chance it comes out zero, make it something
|
||||
* non-zero.
|
||||
@@ -3487,10 +3490,15 @@ int m_mkpasswd(cptr, sptr, parc, parv)
|
||||
return 0;
|
||||
}
|
||||
srandom(time(0));
|
||||
#ifndef _WIN32
|
||||
salt[0] = saltChars[random() % 64];
|
||||
salt[1] = saltChars[random() % 64];
|
||||
salt[2] = 0;
|
||||
|
||||
#else
|
||||
salt[0] = saltChars[rand() % 64];
|
||||
salt[1] = saltChars[rand() % 64];
|
||||
salt[2] = 0;
|
||||
#endif
|
||||
if ((strchr(saltChars, salt[0]) == NULL)
|
||||
|| (strchr(saltChars, salt[1]) == NULL))
|
||||
{
|
||||
|
||||
+4
-4
@@ -87,13 +87,13 @@ static int dead_link(to, notice)
|
||||
DBufClear(&to->recvQ);
|
||||
DBufClear(&to->sendQ);
|
||||
if (!IsPerson(to) && !IsUnknown(to) && !(to->flags & FLAGS_CLOSING))
|
||||
(void)sendto_failops_whoare_opers(notice, get_client_name(to, FALSE)
|
||||
(void)sendto_failops_whoare_opers(notice, get_client_name(to, FALSE),
|
||||
#ifndef _WIN32
|
||||
, strerror(errno)
|
||||
strerror(errno));
|
||||
#else
|
||||
, strerror(WSAGetLastError());
|
||||
strerror(WSAGetLastError()));
|
||||
#endif
|
||||
);
|
||||
|
||||
Debug((DEBUG_ERROR, notice, get_client_name(to, FALSE)));
|
||||
return -1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user