X-Git-Url: https://gapil.gnulinux.it/gitweb/?p=gapil.git;a=blobdiff_plain;f=sources%2Fmylschroot.c;h=f82e2f99928212e434a089bc5b5631741b342dee;hp=56b3d63c9d2228ce0fb9e8d11a3cb6a069711fb4;hb=HEAD;hpb=d451ac30382ae398b9a2242a4f82b3438affc8a7 diff --git a/sources/mylschroot.c b/sources/mylschroot.c index 56b3d63..f82e2f9 100644 --- a/sources/mylschroot.c +++ b/sources/mylschroot.c @@ -39,7 +39,7 @@ * Function and globals definitions */ void usage(void); /* Help printing routine */ -int do_ls(struct dirent * direntry); /* computation function for DirScan */ +int do_ls(struct dirent * direntry); /* computation function for dir_scan */ /* * Main program @@ -54,7 +54,7 @@ int main(int argc, char *argv[]) * Use getopt function */ opterr = 0; /* don't want writing to stderr */ - while ( (i = getopt(argc, argv, "hs:l:wrbf")) != -1) { + while ( (i = getopt(argc, argv, "h")) != -1) { switch (i) { /* * Handling options @@ -96,12 +96,12 @@ int main(int argc, char *argv[]) } else { printf("inode: %d\n", data.st_ino); } - DirScan("/", do_ls); + dir_scan("/", do_ls); exit(0); } /* - * Routine to print file name and size inside DirScan + * Routine to print file name and size inside dir_scan */ int do_ls(struct dirent * direntry) {