]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
s/host/addr/ in variables
authorTimo Sirainen <tss@iki.fi>
Sun, 18 May 2003 16:37:56 +0000 (19:37 +0300)
committerTimo Sirainen <tss@iki.fi>
Sun, 18 May 2003 16:37:56 +0000 (19:37 +0300)
--HG--
branch : HEAD

src/imap-login/client.c
src/pop3-login/client.c

index 4d068f38278918f54d15ddb64837febd57a87c11..c62da39f92fae526f5caba93b290854bac32692f 100644 (file)
@@ -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__,
index 4fdab6ac6ab0c409b9bf04da911566ba8fbd0ed2..a634d149c0905bd4bb5d03974cfca418855867a6 100644 (file)
@@ -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__,