aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2019-08-15 23:20:02 -0500
committerRob Landley <rob@landley.net>2019-08-15 23:20:02 -0500
commitdd20fcc6df0c1597236684720be6735bd1192fde (patch)
tree110aea4eb24ff73a09b4691443be272a1c7f097f
parent8762563eb08f690f3a11eb2b641e347c77710394 (diff)
downloadtoybox-dd20fcc6df0c1597236684720be6735bd1192fde.tar.gz
Switch makedevs to new GLOBALS naming.
-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);