diff options
author | Eric Andersen <andersen@codepoet.org> | 2004-07-30 14:36:37 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2004-07-30 14:36:37 +0000 |
commit | e71e760a9945dffbf2e6238e70768dd52948abe5 (patch) | |
tree | dcc6eb3b58c687d2db182090baf3379509f2d456 | |
parent | 373bc1eaee19fa044bd6e32e7851948e37330385 (diff) | |
download | busybox-e71e760a9945dffbf2e6238e70768dd52948abe5.tar.gz |
Fix up brain damage with the way major and minor are used to
create a dev_t
-rw-r--r-- | miscutils/makedevs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/miscutils/makedevs.c b/miscutils/makedevs.c index e4233330a..28b3f499a 100644 --- a/miscutils/makedevs.c +++ b/miscutils/makedevs.c @@ -58,7 +58,7 @@ int makedevs_main(int argc, char **argv) /* if mode != S_IFCHR and != S_IFBLK third param in mknod() ignored */ - if (mknod(nodname, mode, Smajor | Sminor)) + if (mknod(nodname, mode, makedev(Smajor, Sminor))) bb_error_msg("Failed to create: %s", nodname); if (nodname == basedev) /* ex. /dev/hda - to /dev/hda1 ... */ |