Commit 42a2230c34c2c687f7240566e9a9192a4a7f6f47

Christian Weisgerber 2020-12-01T22:54:25

reverse tree_view_visit_subtree() parameters for consistency ok stsp

diff --git a/tog/tog.c b/tog/tog.c
index 92120c7..1752dad 100644
--- a/tog/tog.c
+++ b/tog/tog.c
@@ -1809,8 +1809,8 @@ open_diff_view_for_commit(struct tog_view **new_view, int begin_x,
 }
 
 static const struct got_error *
-tree_view_visit_subtree(struct got_tree_object *subtree,
-    struct tog_tree_view_state *s)
+tree_view_visit_subtree(struct tog_tree_view_state *s,
+    struct got_tree_object *subtree)
 {
 	struct tog_parent_tree *parent;
 
@@ -1890,7 +1890,7 @@ tree_view_walk_path(struct tog_tree_view_state *s,
 		if (err)
 			break;
 
-		err = tree_view_visit_subtree(tree, s);
+		err = tree_view_visit_subtree(s, tree);
 		if (err) {
 			got_object_tree_close(tree);
 			break;
@@ -5416,7 +5416,7 @@ input_tree_view(struct tog_view **new_view, struct tog_view **dead_view,
 			    got_tree_entry_get_id(s->selected_entry));
 			if (err)
 				break;
-			err = tree_view_visit_subtree(subtree, s);
+			err = tree_view_visit_subtree(s, subtree);
 			if (err) {
 				got_object_tree_close(subtree);
 				break;