From dd20fcc6df0c1597236684720be6735bd1192fde Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Thu, 15 Aug 2019 23:20:02 -0500 Subject: Switch makedevs to new GLOBALS naming. --- toys/other/makedevs.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'toys/other') diff --git a/toys/other/makedevs.c b/toys/other/makedevs.c index fa2b72d8..d7b9b4e5 100644 --- a/toys/other/makedevs.c +++ b/toys/other/makedevs.c @@ -36,7 +36,7 @@ config MAKEDEVS #include "toys.h" GLOBALS( - char *fname; + char *d; ) void makedevs_main() @@ -46,9 +46,9 @@ void makedevs_main() // Open file and chdir, verbosely xprintf("rootdir = %s\n", *toys.optargs); - if (toys.optflags & FLAG_d && strcmp(TT.fname, "-")) { - fd = xopenro(TT.fname); - xprintf("table = %s\n", TT.fname); + if ((toys.optflags & FLAG_d) && strcmp(TT.d, "-")) { + fd = xopenro(TT.d); + xprintf("table = %s\n", TT.d); } else xprintf("table = \n"); xchdir(*toys.optargs); -- cgit v1.2.3