diff options
author | Mitya Selivanov <automainint@guattari.tech> | 2022-12-24 19:34:08 +0100 |
---|---|---|
committer | Mitya Selivanov <automainint@guattari.tech> | 2022-12-24 19:34:08 +0100 |
commit | a466ee5c2e00c179e66c76a2235c3dde5732d908 (patch) | |
tree | 8f640682d5e8e02da0a6b82b6160c3ab7bc9aac2 | |
parent | a0f082f210cdcf33ce0cbbf6655c7e127f3f3f5e (diff) | |
download | kit-a466ee5c2e00c179e66c76a2235c3dde5732d908.zip |
Typo
-rw-r--r-- | source/kit/file.c | 8 | ||||
-rw-r--r-- | source/kit/status.h | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/source/kit/file.c b/source/kit/file.c index 0760258..4f609e6 100644 --- a/source/kit/file.c +++ b/source/kit/file.c @@ -294,7 +294,7 @@ kit_status_t kit_file_remove_recursive(kit_str_t const path, default:; } - return KIT_ERROR_FILE_DO_NOT_EXISTS; + return KIT_ERROR_FILE_DO_NOT_EXIST; } kit_path_type_t kit_path_type(kit_str_t const path) { @@ -345,7 +345,7 @@ kit_file_size_result_t kit_file_size(kit_str_t const path) { } #endif - result.status = KIT_ERROR_FILE_DO_NOT_EXISTS; + result.status = KIT_ERROR_FILE_DO_NOT_EXIST; return result; } @@ -372,8 +372,8 @@ kit_path_list_t kit_file_enum_folder(kit_str_t const path, return result; do { - ptrdiff_t const n = list.size; - DA_RESIZE(list, n + 1); + ptrdiff_t const n = result.files.size; + DA_RESIZE(result.files, n + 1); if (result.files.size != n + 1) { result.status = KIT_ERROR_BAD_ALLOC; break; diff --git a/source/kit/status.h b/source/kit/status.h index 62e15d3..3b27a91 100644 --- a/source/kit/status.h +++ b/source/kit/status.h @@ -12,7 +12,7 @@ enum { KIT_ERROR_RMDIR_FAILED, KIT_ERROR_UNLINK_FAILED, KIT_ERROR_FILE_ALREADY_EXISTS, - KIT_ERROR_FILE_DO_NOT_EXISTS, + KIT_ERROR_FILE_DO_NOT_EXIST, KIT_ERROR_PATH_TOO_LONG }; |