Skip to content

Commit

Permalink
Cosmetic
Browse files Browse the repository at this point in the history
  • Loading branch information
tronkko committed Sep 3, 2023
1 parent 81ac85b commit bf3e5cd
Show file tree
Hide file tree
Showing 7 changed files with 4 additions and 11 deletions.
1 change: 0 additions & 1 deletion examples/cat.c
Original file line number Diff line number Diff line change
Expand Up @@ -124,4 +124,3 @@ main(int argc, char *argv[])
return _main(argc, argv);
}
#endif

7 changes: 3 additions & 4 deletions examples/dir.c
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,6 @@ list_directory(const char* dirname)
if (c != ':' && c != '/' && c != '\\')
*p++ = '/';

/* Print directory name to screen */
printf("Directory of %s\n\n", dirname);

/* Open directory stream */
DIR *dir = opendir(dirname);
if (!dir) {
Expand All @@ -94,6 +91,9 @@ list_directory(const char* dirname)
exit(EXIT_FAILURE);
}

/* Print directory name to screen */
printf("Directory of %s\n\n", dirname);

/* Loop through file names */
int filecount = 0;
int dircount = 0;
Expand Down Expand Up @@ -231,4 +231,3 @@ main(int argc, char *argv[])
return _main(argc, argv);
}
#endif

1 change: 0 additions & 1 deletion examples/du.c
Original file line number Diff line number Diff line change
Expand Up @@ -196,4 +196,3 @@ main(int argc, char *argv[])
return _main(argc, argv);
}
#endif

1 change: 0 additions & 1 deletion examples/find.c
Original file line number Diff line number Diff line change
Expand Up @@ -181,4 +181,3 @@ main(int argc, char *argv[])
return _main(argc, argv);
}
#endif

1 change: 0 additions & 1 deletion examples/ls.c
Original file line number Diff line number Diff line change
Expand Up @@ -145,4 +145,3 @@ main(int argc, char *argv[])
return _main(argc, argv);
}
#endif

1 change: 0 additions & 1 deletion examples/scandir.c
Original file line number Diff line number Diff line change
Expand Up @@ -149,4 +149,3 @@ main(int argc, char *argv[])
return _main(argc, argv);
}
#endif

3 changes: 1 addition & 2 deletions examples/updatedb.c
Original file line number Diff line number Diff line change
Expand Up @@ -194,8 +194,7 @@ db_open(void)

/* Close database file */
static void
db_close(
void)
db_close(void)
{
if (!db)
return;
Expand Down

0 comments on commit bf3e5cd

Please sign in to comment.