Commit 7b535b57 7b535b5730fdeaf84fe862e2f2ca024ad0b5b606 by Alain Magloire

oops forgot mutil.c

	* mailbox/mutil.c: Add <errno.h> if we use errno directly.
	(mu_get_user_email): size not used, nuked.
1 parent b845fd2c
......@@ -8,6 +8,8 @@
send the FETCH 1:*.
* mailbox/message.c (message_is_modified): Protect against null
pointer.
* mailbox/mutil.c: Add <errno.h> if we use errno directly.
(mu_get_user_email): size not used, nuked.
* TODO: Some stuff todo 8).
......
......@@ -410,7 +410,6 @@ getpwnam_virtual (const char *u)
char *
mu_get_user_email (char *name)
{
size_t size;
char hostname[256];
struct hostent *hp;
char *domainpart;
......@@ -430,7 +429,7 @@ mu_get_user_email (char *name)
gethostname (hostname, sizeof hostname);
hostname[sizeof (hostname)-1] = 0;
if (hp = gethostbyname (hostname))
if ((hp = gethostbyname (hostname)))
domainpart = hp->h_name;
else
domainpart = hostname;
......