瀏覽代碼

Initialize BLK_SHIFT with '-S' option

master
fengyichui 5 年之前
父節點
當前提交
5b063c8123
共有 1 個文件被更改,包括 1 次插入3 次删除
  1. +1
    -3
      src/nnn.c

+ 1
- 3
src/nnn.c 查看文件

@@ -3399,9 +3399,6 @@ int main(int argc, char *argv[])
char *ipath = NULL;
int opt;

// Get platform block shift
BLK_SHIFT = ffs(S_BLKSIZE) - 1;

/* Confirm we are in a terminal */
if (!isatty(0) || !isatty(1)) {
fprintf(stderr, "stdin or stdout is not a tty\n");
@@ -3413,6 +3410,7 @@ int main(int argc, char *argv[])
case 'S':
cfg.blkorder = 1;
nftw_fn = sum_bsizes;
BLK_SHIFT = ffs(S_BLKSIZE) - 1;
break;
case 'l':
cfg.showdetail = 0;


Loading…
取消
儲存