1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-07-10 08:03:13 +02:00

Lots of changes again. Most notable: Cmdoverride -> CommandOverride,

including things like CallCmdoverride() to CallCommandOverride().
Type changes like aTKline -> TKL and many more (in particular
aSomething to Something etc. such as aWatch to Watch) but these are
less used by 3rd party module coders.
This commit is contained in:
Bram Matthys
2019-09-11 10:18:09 +02:00
parent f55682cbaa
commit 2a5ea10453
33 changed files with 304 additions and 306 deletions
+5 -5
View File
@@ -85,7 +85,7 @@ int tkldb_configtest(ConfigFile *cf, ConfigEntry *ce, int type, int *errs);
int tkldb_configrun(ConfigFile *cf, ConfigEntry *ce, int type);
EVENT(write_tkldb_evt);
int write_tkldb(void);
int write_tkline(FILE *fd, const char *tmpfname, aTKline *tkl);
int write_tkline(FILE *fd, const char *tmpfname, TKL *tkl);
int read_tkldb(void);
// Globals
@@ -231,7 +231,7 @@ int write_tkldb(void)
FILE *fd;
uint64_t tklcount;
int index, index2;
aTKline *tkl;
TKL *tkl;
#ifdef BENCHMARK
struct timeval tv_alpha, tv_beta;
@@ -324,7 +324,7 @@ int write_tkldb(void)
}
/** Write a TKL entry */
int write_tkline(FILE *fd, const char *tmpfname, aTKline *tkl)
int write_tkline(FILE *fd, const char *tmpfname, TKL *tkl)
{
char tkltype;
char buf[256];
@@ -377,7 +377,7 @@ int write_tkline(FILE *fd, const char *tmpfname, aTKline *tkl)
int read_tkldb(void)
{
FILE *fd;
aTKline *tkl = NULL;
TKL *tkl = NULL;
uint32_t magic = 0;
uint64_t cnt;
uint64_t tklcount = 0;
@@ -440,7 +440,7 @@ int read_tkldb(void)
{
int do_not_add = 0;
tkl = MyMallocEx(sizeof(aTKline));
tkl = MyMallocEx(sizeof(TKL));
/* First, fetch the TKL type.. */
R_SAFE(read_data(fd, &c, sizeof(c)));