mirror of
https://github.com/unrealircd/unrealircd.git
synced 2026-07-10 07:43:12 +02:00
Add const to third argument of unreal_create_match()
This commit is contained in:
@@ -210,7 +210,7 @@ RPC_CALL_FUNC(rpc_spamfilter_add)
|
||||
char targetbuf[64];
|
||||
char actionbuf[2];
|
||||
char reasonbuf[512];
|
||||
char *err = NULL;
|
||||
const char *err = NULL;
|
||||
|
||||
if (!spamfilter_select_criteria(client, request, params, &name, &match_type, &targets, targetbuf, sizeof(targetbuf), &action, actionbuf))
|
||||
return; /* Error already communicated to client */
|
||||
|
||||
+5
-5
@@ -533,7 +533,7 @@ int tkl_config_test_spamfilter(ConfigFile *cf, ConfigEntry *ce, int type, int *e
|
||||
if (match && match_type)
|
||||
{
|
||||
Match *m;
|
||||
char *err;
|
||||
const char *err;
|
||||
|
||||
m = unreal_create_match(match_type, match, &err);
|
||||
if (!m)
|
||||
@@ -733,7 +733,7 @@ int tkl_config_run_spamfilter(ConfigFile *cf, ConfigEntry *ce, int type)
|
||||
|
||||
if (match)
|
||||
{
|
||||
char *err;
|
||||
const char *err;
|
||||
m = unreal_create_match(match_type, match, &err);
|
||||
if (!m)
|
||||
{
|
||||
@@ -1227,7 +1227,7 @@ void recompile_spamfilters(void)
|
||||
{
|
||||
TKL *tkl;
|
||||
Match *m;
|
||||
char *err;
|
||||
const char *err;
|
||||
int converted = 0;
|
||||
int index;
|
||||
|
||||
@@ -2517,7 +2517,7 @@ CMD_FUNC(cmd_spamfilter)
|
||||
int n;
|
||||
Match *m;
|
||||
int match_type = 0;
|
||||
char *err = NULL;
|
||||
const char *err = NULL;
|
||||
|
||||
if (IsServer(client))
|
||||
return;
|
||||
@@ -4741,7 +4741,7 @@ CMD_FUNC(cmd_tkl_add)
|
||||
BanActionValue action;
|
||||
unsigned short target;
|
||||
/* helper variables */
|
||||
char *err;
|
||||
const char *err;
|
||||
|
||||
if (parc < 12)
|
||||
{
|
||||
|
||||
+1
-1
@@ -678,7 +678,7 @@ int read_tkldb(void)
|
||||
if (TKLIsSpamfilter(tkl))
|
||||
{
|
||||
int match_method;
|
||||
char *err = NULL;
|
||||
const char *err = NULL;
|
||||
|
||||
tkl->ptr.spamfilter = safe_alloc(sizeof(Spamfilter));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user