X-Git-Url: https://gapil.gnulinux.it/gitweb/?p=gapil.git;a=blobdiff_plain;f=sources%2FPXDirMonitor.c;h=49405e4200ccc0d18143e268daf2515de0489892;hp=b6ec9827944837dac5b0b3cd64bc6465ab5c3881;hb=5ac64ab2753cbd2198e9b5b17119134b5ef63bc6;hpb=a9150b627f8567902fb2188da4c2ec3df16cf32d diff --git a/sources/PXDirMonitor.c b/sources/PXDirMonitor.c index b6ec982..49405e4 100644 --- a/sources/PXDirMonitor.c +++ b/sources/PXDirMonitor.c @@ -39,7 +39,7 @@ /* Help printing routine */ void usage(void); -/* computation function for DirScan */ +/* computation function for dir_scan */ int ComputeValues(struct dirent * direntry); void HandSIGTERM(int signo); @@ -124,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) {