summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSunil Nimmagadda <sunil@nimmagadda.net>2014-05-29 16:02:05 +0500
committerSunil Nimmagadda <sunil@nimmagadda.net>2014-05-29 16:02:05 +0500
commit5ee656f6eaeb749c3391fb7de801d46b0934f2a4 (patch)
treec6dd6876da0b3efc4fef05761215bde90d93ff83
parentde616ecae133677d9ab6a0dff1570117e288fa5b (diff)
knf and whitespace fixes.
-rw-r--r--maildir.c2
-rw-r--r--maildrop.c4
-rw-r--r--session.c2
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)