knf and whitespace fixes.
--- a/maildir.c Wed May 28 16:37:41 2014 +0500
+++ b/maildir.c Thu May 29 16:02:35 2014 +0500
@@ -157,7 +157,7 @@
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);
}
--- a/maildrop.c Wed May 28 16:37:41 2014 +0500
+++ b/maildrop.c Thu May 29 16:02:35 2014 +0500
@@ -322,12 +322,12 @@
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)
--- a/session.c Wed May 28 16:37:41 2014 +0500
+++ b/session.c Thu May 29 16:02:35 2014 +0500
@@ -608,7 +608,7 @@
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)