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:
@@ -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
@@ -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
@@ -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)
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user