diff options
author | Rob Landley <rob@landley.net> | 2019-10-27 22:47:26 -0500 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2019-10-27 22:47:26 -0500 |
commit | b28b2a60c6d9c7bbbee14cf23ac6c7fa7c193e01 (patch) | |
tree | eba6e9bd16ff18463ee0a97b3089ba8709a1ae81 /toys/other | |
parent | 336dff9adb323439dff21a668a2e5b6d2fe409f5 (diff) | |
download | toybox-b28b2a60c6d9c7bbbee14cf23ac6c7fa7c193e01.tar.gz |
Switch fallocate to new style global names.
Diffstat (limited to 'toys/other')
-rw-r--r-- | toys/other/fallocate.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/toys/other/fallocate.c b/toys/other/fallocate.c index 5007effe..b7ea940c 100644 --- a/toys/other/fallocate.c +++ b/toys/other/fallocate.c @@ -19,14 +19,12 @@ config FALLOCATE #include "toys.h" GLOBALS( - long offset; - long size; + long o, l; ) void fallocate_main(void) { int fd = xcreate(*toys.optargs, O_RDWR | O_CREAT, 0644); - if ((errno = posix_fallocate(fd, TT.offset, TT.size))) - perror_exit("fallocate"); + if ((errno = posix_fallocate(fd, TT.o, TT.l))) perror_exit("fallocate"); if (CFG_TOYBOX_FREE) close(fd); } |