diff --git a/.file.h.kate-swp b/.file.h.kate-swp deleted file mode 100644 index 1d91b92..0000000 Binary files a/.file.h.kate-swp and /dev/null differ diff --git a/main.c b/main.c index 8c9cd57..200347d 100644 --- a/main.c +++ b/main.c @@ -11,7 +11,7 @@ #include #include "cJSON/cJSON.h" -#define bool unsigned char + #ifdef USE_JEMALLOC const char *je_malloc_conf = "narenas:2,lg_chunk:20,stats_print:false"; @@ -25,7 +25,7 @@ const char *je_malloc_conf = "narenas:2,lg_chunk:20,stats_print:false"; #endif unsigned narenas = 4; - +#define bool unsigned char @@ -413,6 +413,7 @@ cJSON *print_statistik(cJSON *main_Array, struct dir_list_struct* list, char* ou printf("%s\t%li\t%s\n", output, list->file->size, list->file->name); DEBUG_PRINT("%s\t%li\t%s\n", output, list->file->size, list->file->name); if (js_logok){ + DEBUG_PRINT("int_depth: %i\n", int_depth); if (list->file->tipe_dir && (list->file->dir_list != NULL) && (int_depth != i)){ DEBUG_PRINT("Рекурсируем!\n"); DEBUG_PRINT("Каталог вниз: %s!\n", list->file->name); @@ -457,8 +458,8 @@ int main(int argc, char *argv[]){ } else { printf("Флаг -r: нет\n"); } - js_logok = opts.has_j; - int_depth= opts.r_value; + js_logok = opts.has_j; + int_depth = opts.r_value; path = opts.path;