|
@ -1,8 +1,11 @@ |
|
|
#include "process_dir.h" |
|
|
|
|
|
#include <dirent.h> |
|
|
|
|
|
|
|
|
#define _GNU_SOURCE |
|
|
#include <stdio.h> |
|
|
#include <stdio.h> |
|
|
|
|
|
|
|
|
|
|
|
#include <dirent.h> |
|
|
#include <stdlib.h> |
|
|
#include <stdlib.h> |
|
|
|
|
|
|
|
|
|
|
|
#include "process_dir.h" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
int process_dir_r(filestruct level) { |
|
|
int process_dir_r(filestruct level) { |
|
|
if (!level.fullname) { |
|
|
if (!level.fullname) { |
|
@ -48,6 +51,6 @@ int process_dir_r(filestruct level) { |
|
|
free(next_level.fullname); |
|
|
free(next_level.fullname); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
closedir(current); |
|
|
|
|
|
|
|
|
(void) closedir(current); |
|
|
return errct; |
|
|
return errct; |
|
|
} |
|
|
} |