Add maxdepth to recurse()
This also makes more sense.
This commit is contained in:
3
du.c
3
du.c
@@ -55,7 +55,8 @@ usage(void)
|
||||
int
|
||||
main(int argc, char *argv[])
|
||||
{
|
||||
struct recursor r = { .fn = du, .hist = NULL, .depth = 0, .follow = 'P', .flags = 0};
|
||||
struct recursor r = { .fn = du, .hist = NULL, .depth = 0, .maxdepth = 0,
|
||||
.follow = 'P', .flags = 0 };
|
||||
size_t n = 0;
|
||||
int kflag = 0, dflag = 0;
|
||||
char *bsize;
|
||||
|
Reference in New Issue
Block a user