1
0
forked from bip/bip

Fix a typo (s/LOGING/LOGGING/)

This commit is contained in:
Pierre-Louis Bonicoli 2021-10-07 18:04:17 +02:00
parent 75317ae17c
commit e6547b8a48
Signed by untrusted user: pilou
GPG Key ID: 06914C4A5EDAA6DD
2 changed files with 7 additions and 7 deletions

View File

@ -1235,7 +1235,7 @@ static void irc_copy_cli(struct link_client *src, struct link_client *dest,
return;
}
static int irc_dispatch_loging_client(bip_t *bip, struct link_client *ic,
static int irc_dispatch_logging_client(bip_t *bip, struct link_client *ic,
struct line *line)
{
if (irc_line_count(line) == 0)
@ -1260,8 +1260,8 @@ int irc_dispatch(bip_t *bip, struct link_any *l, struct line *line)
case IRC_TYPE_CLIENT:
return irc_dispatch_client(bip, (struct link_client*)l, line);
break;
case IRC_TYPE_LOGING_CLIENT:
return irc_dispatch_loging_client(bip, (struct link_client*)l,
case IRC_TYPE_LOGGING_CLIENT:
return irc_dispatch_logging_client(bip, (struct link_client*)l,
line);
break;
#ifdef HAVE_LIBSSL
@ -1984,7 +1984,7 @@ static struct link_client *irc_accept_new(connection_t *conn)
ircc = bip_calloc(sizeof(struct link_client), 1);
CONN(ircc) = newconn;
TYPE(ircc) = IRC_TYPE_LOGING_CLIENT;
TYPE(ircc) = IRC_TYPE_LOGGING_CLIENT;
CONN(ircc)->user_data = ircc;
return ircc;
}
@ -2036,7 +2036,7 @@ void irc_client_close(struct link_client *ic)
} else if (TYPE(ic) == IRC_TYPE_TRUST_CLIENT) {
unbind_from_link(ic);
irc_client_free(ic);
} else if (TYPE(ic) == IRC_TYPE_LOGING_CLIENT) {
} else if (TYPE(ic) == IRC_TYPE_LOGGING_CLIENT) {
irc_client_free(ic);
}
}
@ -2512,7 +2512,7 @@ prot_err:
if (linel)
list_free(linel);
if (lc) {
if (TYPE(lc) == IRC_TYPE_LOGING_CLIENT || TYPE(lc) ==
if (TYPE(lc) == IRC_TYPE_LOGGING_CLIENT || TYPE(lc) ==
IRC_TYPE_TRUST_CLIENT)
list_remove(&bip->connecting_client_list, lc);
irc_close(lc);

View File

@ -51,7 +51,7 @@ struct channel {
#define IRC_TYPE_CLIENT (0)
#define IRC_TYPE_SERVER (1)
#define IRC_TYPE_LOGING_CLIENT (2)
#define IRC_TYPE_LOGGING_CLIENT (2)
#define IRC_TYPE_TRUST_CLIENT (3)
struct bipuser {