diff --git a/mkfile b/mkfile index 03330cecb4f41b15ea8ba62c3b57b91a98c9e37e..80df5400ff00114893a38950803b4655009d0371 100644 --- a/mkfile +++ b/mkfile @@ -3,3 +3,4 @@ run: $CC $CFLAGS tree.c $LD $LDFLAGS -o tree tree.$O + diff --git a/tree.c b/tree.c index ab87cac29a7811d63088a6de5b47bf27111a32b6..e36fb3bf6403305e133aed231b8f0cc3b01f4a3d 100644 --- a/tree.c +++ b/tree.c @@ -4,7 +4,8 @@ #include #include #include <9p.h> -void print_tree(char *basepath, int depth, char *prefix, int max_depth) +void +print_tree(char *basepath, int depth, char *prefix, int max_depth) { Dir *dirs; int i, n, fd; @@ -49,7 +50,8 @@ } close(fd); } -void main(int argc, char *argv[]) +void +main(int argc, char *argv[]) { int max_depth = -1; char *start_dir = "."; @@ -71,3 +73,4 @@ print_tree(start_dir, 0, "", max_depth); exits(0); } +