From 5ee656f6eaeb749c3391fb7de801d46b0934f2a4 Mon Sep 17 00:00:00 2001 From: Sunil Nimmagadda Date: Thu, 29 May 2014 16:02:05 +0500 Subject: knf and whitespace fixes. --- maildir.c | 2 +- maildrop.c | 4 ++-- session.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/maildir.c b/maildir.c index a0bca6a..e818583 100644 --- a/maildir.c +++ b/maildir.c @@ -157,7 +157,7 @@ new_to_cur(struct mdrop *m) strcmp(dp->d_name, "..") == 0) continue; - if(renameat(new_fd, dp->d_name, cur_fd, dp->d_name) == -1) { + if (renameat(new_fd, dp->d_name, cur_fd, dp->d_name) == -1) { logit(LOG_CRIT, "maildir: renameat failed"); return (-1); } diff --git a/maildrop.c b/maildrop.c index e4f1383..20081c7 100644 --- a/maildrop.c +++ b/maildrop.c @@ -322,12 +322,12 @@ list_all(struct imsgev *iev, struct imsg *imsg, struct m_backend *mb) sizeof(res.u.hash)); } else res.u.sz = m.msgs_index[i]->sz; - + imsgev_xcompose(iev, IMSG_MAILDROP_LISTALL, imsg->hdr.peerid, 0, -1, &res, sizeof(res), "maildrop_list"); } - + res.uidl = *uidl; /* terminal sentinel: hash = "" and sz = 0 */ if (*uidl) diff --git a/session.c b/session.c index eceb800..cacaa2a 100644 --- a/session.c +++ b/session.c @@ -608,7 +608,7 @@ handle_list_all(struct session *s, struct imsg *imsg) if (res->uidl) if (strlen(res->u.hash)) session_reply(s, "%zu %s", res->idx, res->u.hash); - else + else goto end; else if (res->u.sz) -- cgit v1.2.3