Commit 7c53f927 7c53f927013f1fc3c1d9df98cb1948a8106b2ec9 by Sergey Poznyakoff

Minor correction

1 parent 30198fa8
...@@ -408,7 +408,7 @@ util_finish (struct imap4d_command *command, int rc, const char *format, ...) ...@@ -408,7 +408,7 @@ util_finish (struct imap4d_command *command, int rc, const char *format, ...)
408 int new_state; 408 int new_state;
409 int status = 0; 409 int status = 0;
410 va_list ap; 410 va_list ap;
411 char *sc = sc2string (rc); 411 const char *sc = sc2string (rc);
412 412
413 va_start (ap, format); 413 va_start (ap, format);
414 vasprintf (&tempbuf, format, ap); 414 vasprintf (&tempbuf, format, ap);
......
...@@ -864,7 +864,8 @@ notify_biff (mailbox_t mbox, char *name, size_t size) ...@@ -864,7 +864,8 @@ notify_biff (mailbox_t mbox, char *name, size_t size)
864 return; 864 return;
865 865
866 mailbox_get_url (mbox, &url); 866 mailbox_get_url (mbox, &url);
867 asprintf (&buf, "%s@%ld:%s", name, size, url_to_string (url)); 867 asprintf (&buf, "%s@%lu:%s", name,
868 (unsigned long) size, url_to_string (url));
868 if (buf) 869 if (buf)
869 { 870 {
870 sendto (fd, buf, strlen (buf), 0, (struct sockaddr *)&inaddr, 871 sendto (fd, buf, strlen (buf), 0, (struct sockaddr *)&inaddr,
......
...@@ -143,7 +143,7 @@ display_message0 (message_t mesg, const msgset_t *msgset, ...@@ -143,7 +143,7 @@ display_message0 (message_t mesg, const msgset_t *msgset,
143 { 143 {
144 size_t nparts = 0; 144 size_t nparts = 0;
145 header_t hdr = NULL; 145 header_t hdr = NULL;
146 const char *type; 146 char *type;
147 char *encoding; 147 char *encoding;
148 int ismime = 0; 148 int ismime = 0;
149 char *tmp; 149 char *tmp;
......