From b28b2a60c6d9c7bbbee14cf23ac6c7fa7c193e01 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Sun, 27 Oct 2019 22:47:26 -0500 Subject: Switch fallocate to new style global names. --- toys/other/fallocate.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'toys/other') 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); } -- cgit v1.2.3