oops forgot mutil.c
* mailbox/mutil.c: Add <errno.h> if we use errno directly. (mu_get_user_email): size not used, nuked.
Showing
2 changed files
with
3 additions
and
2 deletions
... | @@ -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; | ... | ... |
-
Please register or sign in to post a comment