[dovecot-cvs] dovecot/src/imap-login client.c,1.11,1.12
cras at procontrol.fi
cras at procontrol.fi
Sun May 18 20:37:58 EEST 2003
Update of /home/cvs/dovecot/src/imap-login
In directory danu:/tmp/cvs-serv6535/imap-login
Modified Files:
client.c
Log Message:
s/host/addr/ in variables
Index: client.c
===================================================================
RCS file: /home/cvs/dovecot/src/imap-login/client.c,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- client.c 18 May 2003 16:37:04 -0000 1.11
+++ client.c 18 May 2003 16:37:56 -0000 1.12
@@ -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__,
More information about the dovecot-cvs
mailing list