about summary refs log tree commit diff
path: root/mthread.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 /mthread.c
parentdfe09a7c5e3a2273f963d53432ef1686b34547db (diff)
downloadmblaze-66d0eff12fdf31e520493e7c2accb95410dcaec2.tar.gz
mblaze-66d0eff12fdf31e520493e7c2accb95410dcaec2.tar.xz
mblaze-66d0eff12fdf31e520493e7c2accb95410dcaec2.zip
style
Diffstat (limited to 'mthread.c')
-rw-r--r--mthread.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/mthread.c b/mthread.c
index f275826..503b359 100644
--- a/mthread.c
+++ b/mthread.c
@@ -170,7 +170,7 @@ thread(char *file)
 			parent = me;
 		}
 	}
-	
+
 	v = blaze822_hdr(msg, "in-reply-to");
 	char *irt;
 	if (v) {
@@ -181,7 +181,7 @@ thread(char *file)
 		if (!v)
 			goto out;
 		irt = strndup(m+1, v-m-1);
-		
+
 		if (strcmp(irt, mid) != 0) {
 			parent = midcont(irt);
 		}
@@ -278,7 +278,7 @@ find_root(const void *nodep, const VISIT which, const int depth)
 void
 find_roots()
 {
-	top = malloc (sizeof (struct container));
+	top = malloc(sizeof (struct container));
 	top->msg = 0;
 	top->date = -1;
 	top->file = 0;
@@ -387,7 +387,7 @@ print_tree(struct container *c, int depth)
 			else
 				printf("<%s>\n", c->mid);
 		}
-	
+
 		if (c->child)
 			print_tree(c->child, depth+1);
 	} while ((c = c->next));
@@ -400,14 +400,14 @@ main(int argc, char *argv[])
 
 	optional = 1;
 
- 	while ((c = getopt(argc, argv, "S:v")) != -1)
- 		switch(c) {
- 		case 'S': blaze822_loop1(optarg, thread); break;
- 		case 'v': vflag = 1; break;
- 		default:
+	while ((c = getopt(argc, argv, "S:v")) != -1)
+		switch (c) {
+		case 'S': blaze822_loop1(optarg, thread); break;
+		case 'v': vflag = 1; break;
+		default:
 			fprintf(stderr, "Usage: mthread [-v] [-S dir] [msgs...]\n");
- 			exit(1);
- 		}
+			exit(1);
+		}
 
 	optional = 0;