fixed indentation

master
Emanuel Vintila 2017-12-08 12:54:42 +01:00
parent 4a50b16b91
commit 081294a26a
1 changed files with 1 additions and 1 deletions

View File

@ -143,7 +143,7 @@ char ** get_filenames(const char * directory, int * num_of_files) {
int fileNameSize = snprintf(filename, sizeof(filename), "%s/%s", directory, pDirEnt->d_name);
/* Skip non-regular files (e.g. directories) */
if ( ((fileNameSize < (int)sizeof(filename)) && (fileNameSize > 0))
&& (stat(filename, &dirEntStat) == 0) && (S_ISREG(dirEntStat.st_mode)) ) {
&& (stat(filename, &dirEntStat) == 0) && (S_ISREG(dirEntStat.st_mode)) ) {
snprintf(filenames[i], MAX_SIZE_OF_FILENAME-1, "%s", pDirEnt->d_name);
//printf( "ADDED: %s\n", filenames[i] );
i++;