Commit fed328ccfa447dfd906ea4f6906d21e7d425730e

Stefan Sperling 2018-05-20T11:50:42

merge log_view and diff_view structs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
diff --git a/tog/tog.c b/tog/tog.c
index d13a58d..6cb65d8 100644
--- a/tog/tog.c
+++ b/tog/tog.c
@@ -77,14 +77,10 @@ struct tog_cmd tog_commands[] = {
 };
 
 /* globals */
-static struct tog_log_view {
+static struct tog_view {
 	WINDOW *window;
 	PANEL *panel;
-} tog_log_view;
-static struct tog_diff_view {
-	WINDOW *window;
-	PANEL *panel;
-} tog_diff_view;
+} tog_log_view, tog_diff_view;
 
 __dead void
 usage_log(void)