knf and whitespace fixes. v1.0
authorSunil Nimmagadda <sunil@nimmagadda.net>
Thu, 29 May 2014 16:02:35 +0500
changeset 26 b20d78c55e91
parent 25 ce31cbe9193a
child 27 6a8a845df07c
knf and whitespace fixes.
maildir.c
maildrop.c
session.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);
 		}
--- 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)