Fix a warning about const with forward channels.
This commit is contained in:
parent
a14de124d6
commit
d9af501aa8
3 changed files with 3 additions and 3 deletions
|
@ -226,7 +226,7 @@ extern int is_banned(struct Channel *chptr, struct Client *who,
|
|||
extern int is_quieted(struct Channel *chptr, struct Client *who,
|
||||
struct membership *msptr, const char *, const char *);
|
||||
extern int can_join(struct Client *source_p, struct Channel *chptr, char *key,
|
||||
char **forward);
|
||||
const char **forward);
|
||||
|
||||
extern struct membership *find_channel_membership(struct Channel *, struct Client *);
|
||||
extern const char *find_channel_status(struct membership *msptr, int combine);
|
||||
|
|
|
@ -92,7 +92,7 @@ check_forward(struct Client *source_p, struct Channel *chptr,
|
|||
char *key, int *err)
|
||||
{
|
||||
int depth = 0, i;
|
||||
char *next = NULL;
|
||||
const char *next = NULL;
|
||||
|
||||
/* The caller (m_join) is only interested in the reason
|
||||
* for the original channel.
|
||||
|
|
|
@ -664,7 +664,7 @@ is_quieted(struct Channel *chptr, struct Client *who, struct membership *msptr,
|
|||
* caveats - this function should only be called on a local user.
|
||||
*/
|
||||
int
|
||||
can_join(struct Client *source_p, struct Channel *chptr, char *key, char **forward)
|
||||
can_join(struct Client *source_p, struct Channel *chptr, char *key, const char **forward)
|
||||
{
|
||||
rb_dlink_node *invite = NULL;
|
||||
rb_dlink_node *ptr;
|
||||
|
|
Loading…
Reference in a new issue