aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--toys/other/fallocate.c6
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);
}