From: Timo Sirainen Date: Sun, 18 May 2003 16:37:56 +0000 (+0300) Subject: s/host/addr/ in variables X-Git-Tag: 1.1.alpha1~4620 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ce9cbf691047f7130f930101fbf9ff89af71deaf;p=thirdparty%2Fdovecot%2Fcore.git s/host/addr/ in variables --HG-- branch : HEAD --- diff --git a/src/imap-login/client.c b/src/imap-login/client.c index 4d068f3827..c62da39f92 100644 --- a/src/imap-login/client.c +++ b/src/imap-login/client.c @@ -44,17 +44,17 @@ static struct timeout *to_idle; static void client_set_title(struct imap_client *client) { - const char *host; + const char *addr; if (!verbose_proctitle || !process_per_connection) return; - host = net_ip2addr(&client->common.ip); - if (host == NULL) - host = "??"; + addr = net_ip2addr(&client->common.ip); + if (addr == NULL) + addr = "??"; process_title_set(t_strdup_printf(client->tls ? "[%s TLS]" : "[%s]", - host)); + addr)); } static void client_open_streams(struct imap_client *client, int fd) @@ -436,13 +436,13 @@ void client_send_tagline(struct imap_client *client, const char *line) void client_syslog(struct imap_client *client, const char *text) { - const char *host; + const char *addr; - host = net_ip2addr(&client->common.ip); - if (host == NULL) - host = "??"; + addr = net_ip2addr(&client->common.ip); + if (addr == NULL) + addr = "??"; - i_info("%s [%s]", text, host); + i_info("%s [%s]", text, addr); } static void client_hash_check_idle(void *key, void *value __attr_unused__, diff --git a/src/pop3-login/client.c b/src/pop3-login/client.c index 4fdab6ac6a..a634d149c0 100644 --- a/src/pop3-login/client.c +++ b/src/pop3-login/client.c @@ -37,17 +37,17 @@ static struct timeout *to_idle; static void client_set_title(struct pop3_client *client) { - const char *host; + const char *addr; if (!verbose_proctitle || !process_per_connection) return; - host = net_ip2addr(&client->common.ip); - if (host == NULL) - host = "??"; + addr = net_ip2addr(&client->common.ip); + if (addr == NULL) + addr = "??"; process_title_set(t_strdup_printf(client->tls ? "[%s TLS]" : "[%s]", - host)); + addr)); } static void client_open_streams(struct pop3_client *client, int fd) @@ -321,13 +321,13 @@ void client_send_line(struct pop3_client *client, const char *line) void client_syslog(struct pop3_client *client, const char *text) { - const char *host; + const char *addr; - host = net_ip2addr(&client->common.ip); - if (host == NULL) - host = "??"; + addr = net_ip2addr(&client->common.ip); + if (addr == NULL) + addr = "??"; - i_info("%s [%s]", text, host); + i_info("%s [%s]", text, addr); } static void client_hash_check_idle(void *key, void *value __attr_unused__,