diff options
| author | 2018-11-15 20:53:25 +0800 | |
|---|---|---|
| committer | 2018-11-15 20:53:25 +0800 | |
| commit | 5b063c8123605258466adc752e8796eed02226e5 (patch) | |
| tree | 7c67fce702f183b5c6e59a9f137a7e615e1dc213 /src | |
| parent | a86737ea819b9ed33909b5f6ebfca5bd43bb6272 (diff) | |
| download | nnn-5b063c8123605258466adc752e8796eed02226e5.tar.gz | |
Initialize BLK_SHIFT with '-S' option
Diffstat (limited to 'src')
| -rw-r--r-- | src/nnn.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -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; |