]> git.tuebingen.mpg.de Git - adu.git/commit
Get rid of global variables num_dirs, num_files, and num_bytes.
authorAndre Noll <maan@systemlinux.org>
Sun, 1 Jun 2008 18:29:16 +0000 (20:29 +0200)
committerAndre Noll <maan@systemlinux.org>
Sun, 1 Jun 2008 18:29:16 +0000 (20:29 +0200)
commit1e723f61001e9f4448a465886b0b4ebcdadb388e
treee93ef1b7d7764fe2d90de2af99e7682ea5cb2636
parentdd689d6a5f07f03bc0f4ffc518eb8bd3cdcee3ca
Get rid of global variables num_dirs, num_files, and num_bytes.

These were defined in adu.c but not used there at all.

In fact, create.c only used num_dirs in scan_dir() as a counter for
the directory currently being processed while the other two were not
really used at all. Make num_dirs local to scan_dir(), rename it to
current_dir_num and remove the other two.

The only "real" users of these variables are all in select.c, so move
them there and make them static.
adu.c
adu.h
create.c
select.c