btrfs-progs: move test_isdir() to utils.c
authorSatoru Takeuchi <takeuchi_satoru@jp.fujitsu.com>
Fri, 1 Aug 2014 02:58:00 +0000 (11:58 +0900)
committerDavid Sterba <dsterba@suse.cz>
Fri, 22 Aug 2014 13:07:04 +0000 (15:07 +0200)
commitc2d83207bf964e6c0624ce870a01ac1b13ab165b
tree709a053bf9a72c423f37ed09dbd122d0476acf51
parent91b33340576e9c59353a89f0edb7b72a5a60ad3f
btrfs-progs: move test_isdir() to utils.c

Since test_isdir() is a utility function, it's better to
move it to utils.c. In addition, "const char *" is
more appropriate type as its "path" argument because
this argument is not changed in this function.

Signed-off-by: Satoru Takeuchi <takeuchi_satoru@jp.fujitsu.com>
Cc: David Sterba <dsterba@suse.cz>
Cc: Mike Fleetwood <mike.fleetwood@googlemail.com>
Signed-off-by: David Sterba <dsterba@suse.cz>
cmds-subvolume.c
utils.c
utils.h