aboutsummaryrefslogtreecommitdiff
path: root/toys/posix/date.c
diff options
context:
space:
mode:
Diffstat (limited to 'toys/posix/date.c')
-rw-r--r--toys/posix/date.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/toys/posix/date.c b/toys/posix/date.c
index 07d8c1d6..9beaaa1a 100644
--- a/toys/posix/date.c
+++ b/toys/posix/date.c
@@ -17,17 +17,13 @@ config DATE
Set/get the current date/time
*/
+#define FOR_date
#include "toys.h"
-DEFINE_GLOBALS(
+GLOBALS(
char *file;
)
-#define TT this.date
-
-#define FLAG_u 1
-#define FLAG_r 2
-
void date_main(void)
{
const char *format_string = "%a %b %e %H:%M:%S %Z %Y";