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:
parent
4ce7eaefd4
commit
5bc95eaf4a
2 changed files with 3 additions and 3 deletions
|
@ -82,7 +82,7 @@ typedef struct
|
|||
{
|
||||
struct Client *client;
|
||||
struct Channel *chptr;
|
||||
char *key;
|
||||
const char *key;
|
||||
} hook_data_channel_activity;
|
||||
|
||||
typedef struct
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue