aboutsummaryrefslogtreecommitdiff
path: root/toys
diff options
context:
space:
mode:
Diffstat (limited to 'toys')
-rw-r--r--toys/other/makedevs.c8
1 files changed, 4 insertions, 4 deletions
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 = <stdin>\n");
xchdir(*toys.optargs);