aboutsummaryrefslogtreecommitdiffstats
path: root/src/firejail/fs_dev.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/firejail/fs_dev.c')
-rw-r--r--src/firejail/fs_dev.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/firejail/fs_dev.c b/src/firejail/fs_dev.c
index bd036908a..d807f527d 100644
--- a/src/firejail/fs_dev.c
+++ b/src/firejail/fs_dev.c
@@ -137,8 +137,8 @@ static void deventry_mount(void) {
137} 137}
138 138
139static void create_char_dev(const char *path, mode_t mode, int major, int minor) { 139static void create_char_dev(const char *path, mode_t mode, int major, int minor) {
140 dev_t dev = makedev(major, minor); 140 dev_t device = makedev(major, minor);
141 if (mknod(path, S_IFCHR | mode, dev) == -1) 141 if (mknod(path, S_IFCHR | mode, device) == -1)
142 goto errexit; 142 goto errexit;
143 if (chmod(path, mode) < 0) 143 if (chmod(path, mode) < 0)
144 goto errexit; 144 goto errexit;