Minor fix
Showing
2 changed files
with
4 additions
and
2 deletions
... | @@ -78,7 +78,7 @@ mail_from0 (msgset_t *mspec, message_t msg, void *data) | ... | @@ -78,7 +78,7 @@ mail_from0 (msgset_t *mspec, message_t msg, void *data) |
78 | 78 | ||
79 | date[0] = 0; | 79 | date[0] = 0; |
80 | if (util_getenv (NULL, "datefield", Mail_env_boolean, 0) == 0 | 80 | if (util_getenv (NULL, "datefield", Mail_env_boolean, 0) == 0 |
81 | && header_get_value (hdr, MU_HEADER_DATE, &date, sizeof (date), NULL) == 0) | 81 | && header_get_value (hdr, MU_HEADER_DATE, date, sizeof (date), NULL) == 0) |
82 | { | 82 | { |
83 | time_t t; | 83 | time_t t; |
84 | if (mu_parse_date (date, &t, NULL) == 0) | 84 | if (mu_parse_date (date, &t, NULL) == 0) | ... | ... |
... | @@ -25,6 +25,7 @@ | ... | @@ -25,6 +25,7 @@ |
25 | #include <fcntl.h> | 25 | #include <fcntl.h> |
26 | #include <sys/types.h> | 26 | #include <sys/types.h> |
27 | #include <sys/stat.h> | 27 | #include <sys/stat.h> |
28 | #include <string.h> | ||
28 | 29 | ||
29 | #include <mailutils/daemon.h> | 30 | #include <mailutils/daemon.h> |
30 | 31 | ||
... | @@ -55,7 +56,8 @@ daemon_create_pidfile (const char *filename) | ... | @@ -55,7 +56,8 @@ daemon_create_pidfile (const char *filename) |
55 | return 2; /* failure */ | 56 | return 2; /* failure */ |
56 | } | 57 | } |
57 | 58 | ||
58 | snprintf (pid_string, sizeof (pid_string) - 1, "%lu\n", current_pid); | 59 | snprintf (pid_string, sizeof (pid_string) - 1, "%lu\n", |
60 | (unsigned long) current_pid); | ||
59 | write (fd, pid_string, strlen (pid_string)); | 61 | write (fd, pid_string, strlen (pid_string)); |
60 | close (fd); | 62 | close (fd); |
61 | 63 | ... | ... |
-
Please register or sign in to post a comment