about summary refs log tree commit diff
path: root/mscan.c
diff options
context:
space:
mode:
authorLeah Neukirchen <leah@vuxu.org>2017-08-31 17:30:17 +0200
committerLeah Neukirchen <leah@vuxu.org>2017-08-31 17:30:17 +0200
commit66d0eff12fdf31e520493e7c2accb95410dcaec2 (patch)
treef67b59076967ec441daaf7e7c40c1d502a9136bd /mscan.c
parentdfe09a7c5e3a2273f963d53432ef1686b34547db (diff)
downloadmblaze-66d0eff12fdf31e520493e7c2accb95410dcaec2.tar.gz
mblaze-66d0eff12fdf31e520493e7c2accb95410dcaec2.tar.xz
mblaze-66d0eff12fdf31e520493e7c2accb95410dcaec2.zip
style
Diffstat (limited to 'mscan.c')
-rw-r--r--mscan.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/mscan.c b/mscan.c
index 67a4c1d..8d104ad 100644
--- a/mscan.c
+++ b/mscan.c
@@ -8,6 +8,7 @@
 
 #include <errno.h>
 #include <fcntl.h>
+#include <locale.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
@@ -15,7 +16,6 @@
 #include <time.h>
 #include <unistd.h>
 #include <wchar.h>
-#include <locale.h>
 
 #include "blaze822.h"
 
@@ -280,7 +280,7 @@ oneline(char *file)
 		indent++;
 		file++;
 	}
-	
+
 	struct message *msg = blaze822(file);
 	char *flags = msg ? strstr(file, ":2,") : 0;
 	if (!flags)
@@ -492,7 +492,7 @@ main(int argc, char *argv[])
 
 	int c;
 	while ((c = getopt(argc, argv, "If:n")) != -1)
-		switch(c) {
+		switch (c) {
 		case 'I': Iflag++; break;
 		case 'f': fflag = optarg; break;
 		case 'n': nflag = 1; break;
@@ -513,7 +513,7 @@ main(int argc, char *argv[])
 	struct tm *tm = localtime(&now);
 	curyear = tm->tm_year;
 
-	setlocale(LC_ALL, "");	// for wcwidth later
+	setlocale(LC_ALL, "");  // for wcwidth later
 	if (wcwidth(0xfffd) > 0)
 		replacement = 0xfffd;
 
@@ -545,12 +545,12 @@ main(int argc, char *argv[])
 		char *v, *d, *a;
 		if ((v = blaze822_hdr(config, "local-mailbox")))
 			while (alias_idx < (int)(sizeof aliases / sizeof aliases[0]) &&
-			       (v = blaze822_addr(v, &d, &a)))
+			    (v = blaze822_addr(v, &d, &a)))
 				if (a)
 					aliases[alias_idx++] = strdup(a);
 		if ((v = blaze822_hdr(config, "alternate-mailboxes")))
 			while (alias_idx < (int)(sizeof aliases / sizeof aliases[0]) &&
-			       (v = blaze822_addr(v, &d, &a)))
+			    (v = blaze822_addr(v, &d, &a)))
 				if (a)
 					aliases[alias_idx++] = strdup(a);
 		if ((v = blaze822_hdr(config, "scan-format")))