# HG changeset patch # User Sunil Nimmagadda # Date 1401361325 -18030 # Node ID b20d78c55e916497911506071f7653d9afb16dac # Parent ce31cbe9193a3b77d54eca1577f9e5010198ec3c knf and whitespace fixes. diff -r ce31cbe9193a -r b20d78c55e91 maildir.c --- 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); } diff -r ce31cbe9193a -r b20d78c55e91 maildrop.c --- 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) diff -r ce31cbe9193a -r b20d78c55e91 session.c --- 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)