get_printable_kline(..) fix

This commit is contained in:
Valery Yatsko 2008-04-02 16:55:01 +04:00
parent 9072ba07bd
commit 07d5c0494a
2 changed files with 17 additions and 17 deletions

View file

@ -337,8 +337,8 @@ extern struct ConfItem *find_tkline(const char *, const char *, struct sockaddr
extern char *show_iline_prefix(struct Client *, struct ConfItem *, char *);
extern void get_printable_conf(struct ConfItem *,
char **, char **, char **, char **, int *, char **);
extern void get_printable_kline(struct Client *, struct ConfItem *,
char **, char **, char **, char **);
void get_printable_kline(struct Client *, struct ConfItem *,
const char **, const char **, const char **, const char **);
extern void yyerror(const char *);
extern int conf_yy_fatal_error(const char *);

View file

@ -1122,10 +1122,10 @@ get_printable_conf(struct ConfItem *aconf, char **name, char **host,
void
get_printable_kline(struct Client *source_p, struct ConfItem *aconf,
char **host, char **reason,
char **user, char **oper_reason)
const char **host, const char **reason,
const char **user, const char **oper_reason)
{
static char null[] = "<NULL>";
static const char *null = "<NULL>";
*host = EmptyString(aconf->host) ? null : aconf->host;
*reason = EmptyString(aconf->passwd) ? null : aconf->passwd;