diff options
author | Sunil Nimmagadda <sunil@nimmagadda.net> | 2014-05-29 16:02:05 +0500 |
---|---|---|
committer | Sunil Nimmagadda <sunil@nimmagadda.net> | 2014-05-29 16:02:05 +0500 |
commit | 5ee656f6eaeb749c3391fb7de801d46b0934f2a4 (patch) | |
tree | c6dd6876da0b3efc4fef05761215bde90d93ff83 | |
parent | de616ecae133677d9ab6a0dff1570117e288fa5b (diff) |
knf and whitespace fixes.
-rw-r--r-- | maildir.c | 2 | ||||
-rw-r--r-- | maildrop.c | 4 | ||||
-rw-r--r-- | session.c | 2 |
3 files changed, 4 insertions, 4 deletions
@@ -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); } @@ -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) @@ -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) |