Fix format string
Showing
4 changed files
with
6 additions
and
7 deletions
... | @@ -404,7 +404,7 @@ message_finalize (mu_message_t msg, int warn) | ... | @@ -404,7 +404,7 @@ message_finalize (mu_message_t msg, int warn) |
404 | { | 404 | { |
405 | if (add_recipient (value)) | 405 | if (add_recipient (value)) |
406 | { | 406 | { |
407 | mu_error ("%s: bad address %s: %s", progname, value); | 407 | mu_error ("%s: bad address %s", progname, value); |
408 | return 1; | 408 | return 1; |
409 | } | 409 | } |
410 | free (value); | 410 | free (value); | ... | ... |
... | @@ -547,8 +547,7 @@ tls (mu_folder_t folder) | ... | @@ -547,8 +547,7 @@ tls (mu_folder_t folder) |
547 | return -1; | 547 | return -1; |
548 | 548 | ||
549 | FOLDER_DEBUG1 (folder, MU_DEBUG_PROT, "g%u STARTTLS\n", f_imap->seq); | 549 | FOLDER_DEBUG1 (folder, MU_DEBUG_PROT, "g%u STARTTLS\n", f_imap->seq); |
550 | status = imap_writeline (f_imap, "g%u STARTTLS\r\n", | 550 | status = imap_writeline (f_imap, "g%u STARTTLS\r\n", f_imap->seq++); |
551 | f_imap->seq++, f_imap->user, f_imap->passwd); | ||
552 | CHECK_ERROR (f_imap, status); | 551 | CHECK_ERROR (f_imap, status); |
553 | status = imap_send (f_imap); | 552 | status = imap_send (f_imap); |
554 | CHECK_ERROR (f_imap, status); | 553 | CHECK_ERROR (f_imap, status); |
... | @@ -579,7 +578,6 @@ folder_imap_open (mu_folder_t folder, int flags) | ... | @@ -579,7 +578,6 @@ folder_imap_open (mu_folder_t folder, int flags) |
579 | const char *host; | 578 | const char *host; |
580 | long port = 143; /* default imap port. */ | 579 | long port = 143; /* default imap port. */ |
581 | int status = 0; | 580 | int status = 0; |
582 | size_t len = 0; | ||
583 | 581 | ||
584 | /* If we are already open for business, noop. */ | 582 | /* If we are already open for business, noop. */ |
585 | mu_monitor_wrlock (folder->monitor); | 583 | mu_monitor_wrlock (folder->monitor); |
... | @@ -637,7 +635,8 @@ folder_imap_open (mu_folder_t folder, int flags) | ... | @@ -637,7 +635,8 @@ folder_imap_open (mu_folder_t folder, int flags) |
637 | } | 635 | } |
638 | else | 636 | else |
639 | mu_stream_close (folder->stream); | 637 | mu_stream_close (folder->stream); |
640 | FOLDER_DEBUG2 (folder, MU_DEBUG_PROT, "imap_open (%s:%d)\n", host, port); | 638 | FOLDER_DEBUG2 (folder, MU_DEBUG_PROT, "imap_open (%s:%ld)\n", |
639 | host, port); | ||
641 | f_imap->state = IMAP_OPEN_CONNECTION; | 640 | f_imap->state = IMAP_OPEN_CONNECTION; |
642 | 641 | ||
643 | case IMAP_OPEN_CONNECTION: | 642 | case IMAP_OPEN_CONNECTION: | ... | ... |
... | @@ -127,7 +127,7 @@ nntp_folder_open (mu_folder_t folder, int flags) | ... | @@ -127,7 +127,7 @@ nntp_folder_open (mu_folder_t folder, int flags) |
127 | return status; | 127 | return status; |
128 | /* Ask for the stream internal buffering mechanism scheme. */ | 128 | /* Ask for the stream internal buffering mechanism scheme. */ |
129 | mu_stream_setbufsiz (carrier, BUFSIZ); | 129 | mu_stream_setbufsiz (carrier, BUFSIZ); |
130 | FOLDER_DEBUG2 (folder, MU_DEBUG_PROT, "folder_nntp_open (%s:%d)\n", | 130 | FOLDER_DEBUG2 (folder, MU_DEBUG_PROT, "folder_nntp_open (%s:%ld)\n", |
131 | host, port); | 131 | host, port); |
132 | 132 | ||
133 | status = mu_nntp_create (&f_nntp->nntp); | 133 | status = mu_nntp_create (&f_nntp->nntp); | ... | ... |
... | @@ -192,7 +192,7 @@ mimetypes_close () | ... | @@ -192,7 +192,7 @@ mimetypes_close () |
192 | int | 192 | int |
193 | yyerror (char *s) | 193 | yyerror (char *s) |
194 | { | 194 | { |
195 | mu_error ("%s:%lu: %s", file_name, line_num, s); | 195 | mu_error ("%s:%d: %s", file_name, line_num, s); |
196 | return 0; | 196 | return 0; |
197 | } | 197 | } |
198 | 198 | ... | ... |
-
Please register or sign in to post a comment