Commit d531c1a9 d531c1a9e844c1c6f2c13774b3f6ed62178cb557 by Sergey Poznyakoff

Added typecasts to shut the compiler warnings

1 parent c1bedde5
......@@ -251,7 +251,7 @@ auth_gssapi (struct imap4d_command *command, char **username)
if (imap4d_gss_userok (&client_name, *username))
{
syslog (LOG_NOTICE, "GSSAPI user %s is NOT authorized as %s",
client_name.value, *username);
(char *) client_name.value, *username);
util_finish (command, RESP_NO,
"GSSAPI user %s is NOT authorized as %s",
client_name.value, *username);
......@@ -264,7 +264,7 @@ auth_gssapi (struct imap4d_command *command, char **username)
else
{
syslog (LOG_NOTICE, "GSSAPI user %s is authorized as %s",
client_name.value, *username);
(char *) client_name.value, *username);
}
gss_release_buffer (&min_stat, &client_name);
......
......@@ -66,7 +66,8 @@ mu_scm_body_print (SCM body_smob, SCM port, scm_print_state * pstate)
scm_puts (buffer, port);
scm_puts ("\" ", port);
snprintf (buffer, sizeof (buffer), "%3ld %-5ld", b_lines, b_size);
snprintf (buffer, sizeof (buffer), "%3lu %-5lu",
(unsigned long) b_lines, (unsigned long) b_size);
scm_puts (buffer, port);
scm_puts (">", port);
......
......@@ -109,7 +109,8 @@ mu_scm_message_print (SCM message_smob, SCM port, scm_print_state * pstate)
message_size (mum->msg, &m_size);
message_lines (mum->msg, &m_lines);
snprintf (buffer, sizeof (buffer), "%3ld %-5ld", m_lines, m_size);
snprintf (buffer, sizeof (buffer), "%3lu %-5lu",
(unsigned long) m_lines, (unsigned long) m_size);
scm_puts (buffer, port);
}
scm_puts (">", port);
......
......@@ -629,10 +629,10 @@ _locker_lock_dotlock (locker_t lock)
gethostname (host, sizeof (host));
host[MAXHOSTNAMELEN] = 0;
snprintf (now, sizeof (now), "%d", time (0));
snprintf (now, sizeof (now), "%lu", (unsigned long) time (0));
now[sizeof (now) - 1] = 0;
snprintf (pid, sizeof (pid), "%d", getpid ());
snprintf (pid, sizeof (pid), "%lu", (unsigned long) getpid ());
pid[sizeof (pid) - 1] = 0;
sz = strlen (lock->file) + 1 /* "." */
......