aboutsummaryrefslogtreecommitdiff
path: root/toys/pending/mdev.c
diff options
context:
space:
mode:
Diffstat (limited to 'toys/pending/mdev.c')
-rw-r--r--toys/pending/mdev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toys/pending/mdev.c b/toys/pending/mdev.c
index e7adc993..975d31da 100644
--- a/toys/pending/mdev.c
+++ b/toys/pending/mdev.c
@@ -190,7 +190,7 @@ found_device:
if (strchr(device_name, '/'))
mkpathat(AT_FDCWD, toybuf, 0, 2);
- if (mknod(toybuf, mode | type, makedev(major, minor)) && errno != EEXIST)
+ if (mknod(toybuf, mode | type, dev_makedev(major, minor)) && errno != EEXIST)
perror_exit("mknod %s failed", toybuf);