Commit 9d0ff26d 9d0ff26d7a50b955210974e3fc1e9b86f7bd2316 by Sergey Poznyakoff

Minor fix

1 parent 7d1f1b45
......@@ -78,7 +78,7 @@ mail_from0 (msgset_t *mspec, message_t msg, void *data)
date[0] = 0;
if (util_getenv (NULL, "datefield", Mail_env_boolean, 0) == 0
&& header_get_value (hdr, MU_HEADER_DATE, &date, sizeof (date), NULL) == 0)
&& header_get_value (hdr, MU_HEADER_DATE, date, sizeof (date), NULL) == 0)
{
time_t t;
if (mu_parse_date (date, &t, NULL) == 0)
......
......@@ -25,6 +25,7 @@
#include <fcntl.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <string.h>
#include <mailutils/daemon.h>
......@@ -55,7 +56,8 @@ daemon_create_pidfile (const char *filename)
return 2; /* failure */
}
snprintf (pid_string, sizeof (pid_string) - 1, "%lu\n", current_pid);
snprintf (pid_string, sizeof (pid_string) - 1, "%lu\n",
(unsigned long) current_pid);
write (fd, pid_string, strlen (pid_string));
close (fd);
......