summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools')
-rw-r--r--meta/recipes-devtools/makedevs/makedevs-1.0.0/makedevs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/recipes-devtools/makedevs/makedevs-1.0.0/makedevs.c b/meta/recipes-devtools/makedevs/makedevs-1.0.0/makedevs.c
index 247d6c1c3c..d58e8911a6 100644
--- a/meta/recipes-devtools/makedevs/makedevs-1.0.0/makedevs.c
+++ b/meta/recipes-devtools/makedevs/makedevs-1.0.0/makedevs.c
@@ -226,7 +226,7 @@ static int interpret_table_entry(char *line)
226 sprintf(path, "%s/%s%d", rootdir, name, i); 226 sprintf(path, "%s/%s%d", rootdir, name, i);
227 /* FIXME: MKDEV uses illicit insider knowledge of kernel 227 /* FIXME: MKDEV uses illicit insider knowledge of kernel
228 * major/minor representation... */ 228 * major/minor representation... */
229 rdev = MKDEV(major, minor + (i * increment - start)); 229 rdev = MKDEV(major, minor + (i - start) * increment);
230 add_new_device(buf, path, uid, gid, mode, rdev); 230 add_new_device(buf, path, uid, gid, mode, rdev);
231 } 231 }
232 } else { 232 } else {