Skip to content

Commit

Permalink
fix(dent): remove alot of new lines
Browse files Browse the repository at this point in the history
  • Loading branch information
royreznik committed Oct 2, 2024
1 parent 0493fa7 commit e168355
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,15 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Get current date
id: date
run: echo "::set-output name=date::$(date +'%Y-%m-%dT%H:%M:%S')"
- name: tests
run: make test
- name: create Release
uses: softprops/action-gh-release@v1
with:
tag_name: Release-${{ steps.date.outputs.date }}
files: |
dent
static-dent
Expand Down
2 changes: 0 additions & 2 deletions dent.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ void listDirThreaded(const char *path) {

for (bpos = 0; bpos < nread;) {
d = (struct linux_dirent64 *) (buf + bpos);

if (strcmp(d->d_name, ".") != 0 && strcmp(d->d_name, "..") != 0) {
printf("%s/%s\n", path, d->d_name);

Expand All @@ -52,7 +51,6 @@ void listDirThreaded(const char *path) {
pthread_detach(tid);
}
}

bpos += d->d_reclen;
}
}
Expand Down
2 changes: 0 additions & 2 deletions main.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ int main(int argc, char *argv[]) {
printf("%s\n", startDir);
listDirThreaded(startDir);
pthread_exit(NULL);

sem_destroy(&semaphore);

return 0;
}

0 comments on commit e168355

Please sign in to comment.