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
This commit is contained in:
Simon Arlott 2016-10-30 12:36:50 +00:00
parent 4ce7eaefd4
commit 5bc95eaf4a
No known key found for this signature in database
GPG key ID: C8975F2043CA5D24
2 changed files with 3 additions and 3 deletions

View file

@ -82,7 +82,7 @@ typedef struct
{
struct Client *client;
struct Channel *chptr;
char *key;
const char *key;
} hook_data_channel_activity;
typedef struct

View file

@ -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)