X-Git-Url: https://gapil.gnulinux.it/gitweb/?p=gapil.git;a=blobdiff_plain;f=sources%2FPXDirMonitor.c;h=49405e4200ccc0d18143e268daf2515de0489892;hp=5f001fe6c79bd1b6523c3a71376356f061c6d740;hb=26f7a8bb19c6cb198c213757a97b6ac79e40db4b;hpb=d451ac30382ae398b9a2242a4f82b3438affc8a7 diff --git a/sources/PXDirMonitor.c b/sources/PXDirMonitor.c index 5f001fe..49405e4 100644 --- a/sources/PXDirMonitor.c +++ b/sources/PXDirMonitor.c @@ -32,13 +32,14 @@ #include /* directory operation constants and functions */ #include /* C standard library */ #include /* unix standard library */ +#include /* C strings library */ #include "Gapil.h" #include "macros.h" /* Help printing routine */ void usage(void); -/* computation function for DirScan */ +/* computation function for dir_scan */ int ComputeValues(struct dirent * direntry); void HandSIGTERM(int signo); @@ -123,13 +124,13 @@ int main(int argc, char *argv[]) while (1) { MutexLock(mutex); /* lock shared memory */ memset(shmptr, 0, sizeof(struct DirProp)); /* erase previous data */ - DirScan(argv[1], ComputeValues); /* execute scan */ + dir_scan(argv[1], ComputeValues); /* execute scan */ MutexUnlock(mutex); /* unlock shared memory */ sleep(pause); /* sleep until next watch */ } } /* - * Routine to compute directory properties inside DirScan + * Routine to compute directory properties inside dir_scan */ int ComputeValues(struct dirent * direntry) {