diff options
author | Sebastian Parborg <darkdefende@gmail.com> | 2020-09-04 21:59:13 +0300 |
---|---|---|
committer | Sebastian Parborg <darkdefende@gmail.com> | 2020-09-04 22:04:16 +0300 |
commit | 2115232a16d81d28dbdb8042ed8e9316858514c6 (patch) | |
tree | 1aeb7354a85b21b43a3ede7bf2980c172d4eec82 /source/blender/blenlib/intern/storage.c | |
parent | e43d482cc93c64d55b1f58178db68551077e6560 (diff) |
Cleanup: Clang-Tidy readability-inconsistent-declaration-parameter-name fix
No functional changes
Diffstat (limited to 'source/blender/blenlib/intern/storage.c')
-rw-r--r-- | source/blender/blenlib/intern/storage.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/source/blender/blenlib/intern/storage.c b/source/blender/blenlib/intern/storage.c index db062ff50fd..a841068bfdb 100644 --- a/source/blender/blenlib/intern/storage.c +++ b/source/blender/blenlib/intern/storage.c @@ -341,11 +341,11 @@ bool BLI_file_alias_target( * Returns the st_mode from stat-ing the specified path name, or 0 if stat fails * (most likely doesn't exist or no access). */ -int BLI_exists(const char *name) +int BLI_exists(const char *path) { #if defined(WIN32) BLI_stat_t st; - wchar_t *tmp_16 = alloc_utf16_from_8(name, 1); + wchar_t *tmp_16 = alloc_utf16_from_8(path, 1); int len, res; len = wcslen(tmp_16); @@ -375,9 +375,9 @@ int BLI_exists(const char *name) } #else struct stat st; - BLI_assert(!BLI_path_is_rel(name)); - if (stat(name, &st)) { - return 0; + BLI_assert(!BLI_path_is_rel(path)); + if (stat(path, &st)) { + return (0); } #endif return (st.st_mode); @@ -582,9 +582,9 @@ void *BLI_file_read_text_as_mem_with_newline_as_nil(const char *filepath, /** * Reads the contents of a text file and returns the lines in a linked list. */ -LinkNode *BLI_file_read_as_lines(const char *name) +LinkNode *BLI_file_read_as_lines(const char *filepath) { - FILE *fp = BLI_fopen(name, "r"); + FILE *fp = BLI_fopen(filepath, "r"); LinkNodePair lines = {NULL, NULL}; char *buf; size_t size; |