diff options
author | drkhsh <me@drkhsh.at> | 2022-10-28 00:51:34 +0200 |
---|---|---|
committer | Rafael Marçalo <raroma09@gmail.com> | 2022-10-28 22:22:55 +0100 |
commit | 3124351099e0be9ba4a00e79083457159f651372 (patch) | |
tree | 27f68849b8aaeece17411835fd303b020cc70ca0 /components/num_files.c | |
parent | 35249fb0feb52a7fcaab2d2322c073b042c68453 (diff) |
radical re-formatting 2/3: Fix blocks
Fixes coding style. Formatting commits suck, incoherent coding style
sucks more.
https://suckless.org/coding_style/
Diffstat (limited to 'components/num_files.c')
-rw-r--r-- | components/num_files.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/num_files.c b/components/num_files.c index 8205562..e4b4281 100644 --- a/components/num_files.c +++ b/components/num_files.c @@ -20,9 +20,9 @@ num_files(const char *path) num = 0; while ((dp = readdir(fd))) { - if (!strcmp(dp->d_name, ".") || !strcmp(dp->d_name, "..")) { + if (!strcmp(dp->d_name, ".") || !strcmp(dp->d_name, "..")) continue; /* skip self and parent */ - } + num++; } |