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 @@ ...@@ -8,6 +8,8 @@
8 send the FETCH 1:*. 8 send the FETCH 1:*.
9 * mailbox/message.c (message_is_modified): Protect against null 9 * mailbox/message.c (message_is_modified): Protect against null
10 pointer. 10 pointer.
11 * mailbox/mutil.c: Add <errno.h> if we use errno directly.
12 (mu_get_user_email): size not used, nuked.
11 13
12 * TODO: Some stuff todo 8). 14 * TODO: Some stuff todo 8).
13 15
......
...@@ -410,7 +410,6 @@ getpwnam_virtual (const char *u) ...@@ -410,7 +410,6 @@ getpwnam_virtual (const char *u)
410 char * 410 char *
411 mu_get_user_email (char *name) 411 mu_get_user_email (char *name)
412 { 412 {
413 size_t size;
414 char hostname[256]; 413 char hostname[256];
415 struct hostent *hp; 414 struct hostent *hp;
416 char *domainpart; 415 char *domainpart;
...@@ -430,7 +429,7 @@ mu_get_user_email (char *name) ...@@ -430,7 +429,7 @@ mu_get_user_email (char *name)
430 gethostname (hostname, sizeof hostname); 429 gethostname (hostname, sizeof hostname);
431 hostname[sizeof (hostname)-1] = 0; 430 hostname[sizeof (hostname)-1] = 0;
432 431
433 if (hp = gethostbyname (hostname)) 432 if ((hp = gethostbyname (hostname)))
434 domainpart = hp->h_name; 433 domainpart = hp->h_name;
435 else 434 else
436 domainpart = hostname; 435 domainpart = hostname;
......