Skip to content

Commit

Permalink
knf and whitespace fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
snimmagadda committed May 29, 2014
1 parent ba38d3f commit d338a53
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion maildir.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
4 changes: 2 additions & 2 deletions maildrop.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion session.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit d338a53

Please sign in to comment.