1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-07-09 06:43:12 +02:00

It's raining consts...

This commit is contained in:
Bram Matthys
2021-09-11 09:30:12 +02:00
parent 9a350169b9
commit fcf020b99e
18 changed files with 182 additions and 190 deletions
+1 -1
View File
@@ -121,7 +121,7 @@ int censor_config_test(ConfigFile *cf, ConfigEntry *ce, int type, int *errs)
}
if (!strcmp(cep->name, "word"))
{
char *errbuf;
const char *errbuf;
if (has_word)
{
config_warn_duplicate(cep->file->filename,
+3 -2
View File
@@ -485,7 +485,8 @@ CMD_FUNC(cmd_uid)
char nick[NICKLEN + 1];
long lastnick = 0;
int differ = 1;
char *hostname, *username, *sstamp, *umodes, *virthost, *ip_raw, *ip=NULL, *realname;
char *hostname, *username, *sstamp, *umodes, *virthost, *ip_raw, *realname;
const char *ip = NULL;
if (parc < 13)
{
@@ -1244,7 +1245,7 @@ int AllowClient(Client *client)
if (IsSecure(client) && (iConf.outdated_tls_policy_user == POLICY_DENY) && outdated_tls_client(client))
{
char *msg = outdated_tls_client_build_string(iConf.outdated_tls_policy_user_message, client);
const char *msg = outdated_tls_client_build_string(iConf.outdated_tls_policy_user_message, client);
exit_client(client, NULL, msg);
return 0;
}
+2 -2
View File
@@ -3828,7 +3828,7 @@ void _sendnotice_tkl_add(TKL *tkl)
char buf[512];
char set_at[128];
char expire_at[128];
char *tkl_type_str; /**< Eg: "K-Line" */
const char *tkl_type_str; /**< Eg: "K-Line" */
/* Don't show notices for temporary nick holds (issued by services) */
if (TKLIsNameBan(tkl) && tkl->ptr.nameban->hold)
@@ -3876,7 +3876,7 @@ void _sendnotice_tkl_del(char *removed_by, TKL *tkl)
{
char buf[512];
char set_at[128];
char *tkl_type_str;
const char *tkl_type_str;
/* Don't show notices for temporary nick holds (issued by services) */
if (TKLIsNameBan(tkl) && tkl->ptr.nameban->hold)
+1 -1
View File
@@ -102,7 +102,7 @@ int censor_config_test(ConfigFile *cf, ConfigEntry *ce, int type, int *errs)
}
if (!strcmp(cep->name, "word"))
{
char *errbuf;
const char *errbuf;
if (has_word)
{
config_warn_duplicate(cep->file->filename,