diff options
| author | Ray <[email protected]> | 2020-03-09 18:45:37 +0100 |
|---|---|---|
| committer | Ray <[email protected]> | 2020-03-09 18:45:37 +0100 |
| commit | 4c728f0b546b72a5a5d80ef1ba9ed28d486f4560 (patch) | |
| tree | e67259c6f2589ea646b96e14b6dd5be3d77faeb8 /src/core.c | |
| parent | 5895fb6adc83811104843f8e489c67dfe59d0663 (diff) | |
| download | raylib-4c728f0b546b72a5a5d80ef1ba9ed28d486f4560.tar.gz raylib-4c728f0b546b72a5a5d80ef1ba9ed28d486f4560.zip | |
Minor tweaks
Diffstat (limited to 'src/core.c')
| -rw-r--r-- | src/core.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -2069,7 +2069,7 @@ char **GetDirectoryFiles(const char *dirPath, int *fileCount) for (int i = 0; i < MAX_DIRECTORY_FILES; i++) dirFilesPath[i] = (char *)RL_MALLOC(sizeof(char)*MAX_FILEPATH_LENGTH); int counter = 0; - struct dirent *ent; + struct dirent *entity; DIR *dir = opendir(dirPath); if (dir != NULL) // It's a directory @@ -2078,15 +2078,15 @@ char **GetDirectoryFiles(const char *dirPath, int *fileCount) // first one to count files and second one to read names // That way we can allocate required memory, instead of a limited pool - while ((ent = readdir(dir)) != NULL) + while ((entity = readdir(dir)) != NULL) { - strcpy(dirFilesPath[counter], ent->d_name); + strcpy(dirFilesPath[counter], entity->d_name); counter++; } closedir(dir); } - else TRACELOG(LOG_WARNING, "Can not open directory...\n"); // Maybe it's a file... + else TRACELOG(LOG_WARNING, "Can not open directory...\n"); // Maybe it's a file... dirFilesCount = counter; *fileCount = dirFilesCount; |
