aboutsummaryrefslogtreecommitdiff
path: root/toys/other/truncate.c
diff options
context:
space:
mode:
Diffstat (limited to 'toys/other/truncate.c')
-rw-r--r--toys/other/truncate.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/toys/other/truncate.c b/toys/other/truncate.c
index aa952b16..47b07583 100644
--- a/toys/other/truncate.c
+++ b/toys/other/truncate.c
@@ -17,14 +17,13 @@ config TRUNCATE
-s New size
*/
+#define FOR_truncate
#include "toys.h"
-DEFINE_GLOBALS(
+GLOBALS(
long size;
)
-#define TT this.truncate
-
static void do_truncate(int fd, char *name)
{
if (fd<0) return;