aboutsummaryrefslogtreecommitdiff
path: root/toys/other/makedevs.c
diff options
context:
space:
mode:
Diffstat (limited to 'toys/other/makedevs.c')
-rw-r--r--toys/other/makedevs.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/toys/other/makedevs.c b/toys/other/makedevs.c
index a6998fcc..fa2b72d8 100644
--- a/toys/other/makedevs.c
+++ b/toys/other/makedevs.c
@@ -17,7 +17,7 @@ config MAKEDEVS
-d File containing device table (default reads from stdin)
- Each line of the device table has the fields:
+ Each line of of the device table has the fields:
<name> <type> <mode> <uid> <gid> <major> <minor> <start> <increment> <count>
Where name is the file name, and type is one of the following:
@@ -36,7 +36,7 @@ config MAKEDEVS
#include "toys.h"
GLOBALS(
- char *d;
+ char *fname;
)
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.d, "-")) {
- fd = xopenro(TT.d);
- xprintf("table = %s\n", TT.d);
+ if (toys.optflags & FLAG_d && strcmp(TT.fname, "-")) {
+ fd = xopenro(TT.fname);
+ xprintf("table = %s\n", TT.fname);
} else xprintf("table = <stdin>\n");
xchdir(*toys.optargs);