From 5bc95eaf4ad00897e6ff9b37225c2dd4399eadda Mon Sep 17 00:00:00 2001 From: Simon Arlott Date: Sun, 30 Oct 2016 12:36:50 +0000 Subject: [PATCH] Use const hook data where possible core/m_nick.c: In function `change_remote_nick': core/m_nick.c:745: warning: assignment discards qualifiers from pointer target type --- include/hook.h | 2 +- modules/core/m_nick.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/hook.h b/include/hook.h index 72cc9fdd..eb8c1a6d 100644 --- a/include/hook.h +++ b/include/hook.h @@ -82,7 +82,7 @@ typedef struct { struct Client *client; struct Channel *chptr; - char *key; + const char *key; } hook_data_channel_activity; typedef struct diff --git a/modules/core/m_nick.c b/modules/core/m_nick.c index ec57b93a..0b2481e4 100644 --- a/modules/core/m_nick.c +++ b/modules/core/m_nick.c @@ -624,7 +624,7 @@ change_local_nick(struct Client *client_p, struct Client *source_p, struct Channel *chptr; char note[NICKLEN + 10]; int samenick; - hook_data hook_info; + hook_cdata hook_info; if (dosend) { @@ -731,7 +731,7 @@ change_remote_nick(struct Client *client_p, struct Client *source_p, { struct nd_entry *nd; int samenick = irccmp(source_p->name, nick) ? 0 : 1; - hook_data hook_info; + hook_cdata hook_info; /* client changing their nick - dont reset ts if its same */ if(!samenick)