Browse Source

blkpack: Remove usage of nonstandard d_type

The man page says it's not always available and it caused problems
under some FSes. The condition is not needed in the context of
blk/, let's scrap it.
pull/108/head
Virgil Dupras 3 years ago
parent
commit
bcddfd461d
1 changed files with 0 additions and 3 deletions
  1. +0
    -3
      tools/blkpack.c

+ 0
- 3
tools/blkpack.c View File

@@ -29,9 +29,6 @@ int main(int argc, char *argv[])
if ((strcmp(ep->d_name, ".") == 0) || strcmp(ep->d_name, "..") == 0) {
continue;
}
if (ep->d_type != DT_REG) {
continue;
}
int blkid = atoi(ep->d_name);
if (blkid >= blkcnt) {
int newcnt = blkid+1;


Loading…
Cancel
Save