aboutsummaryrefslogtreecommitdiff
path: root/toys
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2019-10-27 22:47:26 -0500
committerRob Landley <rob@landley.net>2019-10-27 22:47:26 -0500
commitb28b2a60c6d9c7bbbee14cf23ac6c7fa7c193e01 (patch)
treeeba6e9bd16ff18463ee0a97b3089ba8709a1ae81 /toys
parent336dff9adb323439dff21a668a2e5b6d2fe409f5 (diff)
downloadtoybox-b28b2a60c6d9c7bbbee14cf23ac6c7fa7c193e01.tar.gz
Switch fallocate to new style global names.
Diffstat (limited to 'toys')
-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);
}