changeset 1486:2f5b3da28dd9 HEAD

s/host/addr/ in variables
author Timo Sirainen <tss@iki.fi>
date Sun, 18 May 2003 19:37:56 +0300
parents 8c28289a15a1
children ea32969a28b7
files src/imap-login/client.c src/pop3-login/client.c
diffstat 2 files changed, 20 insertions(+), 20 deletions(-) [+]
line wrap: on
line diff
--- a/src/imap-login/client.c	Sun May 18 19:37:04 2003 +0300
+++ b/src/imap-login/client.c	Sun May 18 19:37:56 2003 +0300
@@ -44,17 +44,17 @@
 
 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_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__,
--- a/src/pop3-login/client.c	Sun May 18 19:37:04 2003 +0300
+++ b/src/pop3-login/client.c	Sun May 18 19:37:56 2003 +0300
@@ -37,17 +37,17 @@
 
 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_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__,