Преглед на файлове

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 преди 4 години
родител
ревизия
bcddfd461d
променени са 1 файла, в които са добавени 0 реда и са изтрити 3 реда
  1. +0
    -3
      tools/blkpack.c

+ 0
- 3
tools/blkpack.c Целия файл

@@ -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…
Отказ
Запис