From d04945c2f3079f285f7315f281b792a28e83e928 Mon Sep 17 00:00:00 2001 From: Paul J Stevens Date: Mon, 4 Jul 2011 19:53:56 +0200 Subject: [PATCH] cast size_t to long long unsigned (#903) fix a few compiler warnings as well --- src/dbmail-user.c | 10 ++++++---- src/pop3.c | 2 +- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/dbmail-user.c b/src/dbmail-user.c index 2ec685cb9..96291ca7d 100644 --- a/src/dbmail-user.c +++ b/src/dbmail-user.c @@ -81,10 +81,11 @@ int do_add(const char * const user, if (db_createmailbox("INBOX", useridnr, &mailbox_idnr) < 0) { qprintf("failed... removing user... "); - if (auth_delete_user(user)) + if (auth_delete_user(user)) { qprintf("failed also.\n"); - else + } else { qprintf("done.\n"); + } return -1; } qprintf("ok.\n"); @@ -708,10 +709,11 @@ int do_empty(u64_t useridnr) fflush(stdout); result = db_empty_mailbox(useridnr); - if (result != 0) + if (result != 0) { qerrorf("Error. Please check the log.\n"); - else + } else { qprintf("Ok.\n"); + } } else { GList *children = NULL; u64_t owner_idnr; diff --git a/src/pop3.c b/src/pop3.c index 4a1bd5a0d..4c98e9eef 100644 --- a/src/pop3.c +++ b/src/pop3.c @@ -556,7 +556,7 @@ int pop3(ClientSession_t *session, const char *buffer) msg->virtual_messagestatus = MESSAGE_STATUS_SEEN; if (! (s = db_get_message_lines(msg->realmessageid, -2, 0))) return -1; - i = ci_write(ci, "+OK %llu octets\r\n%s", strlen(s), s); + i = ci_write(ci, "+OK %llu octets\r\n%s", (u64_t)strlen(s), s); g_free(s); return 1; }