summaryrefslogtreecommitdiff
path: root/meta/recipes-devtools/makedevs/makedevs-1.0.0
diff options
context:
space:
mode:
authorPeter Kjellerstedt <peter.kjellerstedt@axis.com>2013-05-31 13:36:49 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-06-04 11:38:51 +0100
commit4fe2b01bfd2831b002e7138dadbc0437df6e9ed6 (patch)
treefb86af5a0819ba95c6ca98c8117d18dd8f29c0d8 /meta/recipes-devtools/makedevs/makedevs-1.0.0
parentbb027a332f2f2927a6bcbc4c035b42a012d0579e (diff)
downloadopenembedded-core-4fe2b01bfd2831b002e7138dadbc0437df6e9ed6.tar.gz
openembedded-core-4fe2b01bfd2831b002e7138dadbc0437df6e9ed6.tar.bz2
openembedded-core-4fe2b01bfd2831b002e7138dadbc0437df6e9ed6.zip
makedevs: Make count actually behave as a count for device blocks
Previously count actually behaved as end, and did not take start into account. Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/makedevs/makedevs-1.0.0')
-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 4bb316b332..6c1f2fb461 100644
--- a/meta/recipes-devtools/makedevs/makedevs-1.0.0/makedevs.c
+++ b/meta/recipes-devtools/makedevs/makedevs-1.0.0/makedevs.c
@@ -219,7 +219,7 @@ static int interpret_table_entry(char *line)
dev_t rdev;
char buf[80];
- for (i = start; i < count; i++) {
+ for (i = start; i < start + count; i++) {
sprintf(buf, "%s%d", name, i);
sprintf(path, "%s/%s%d", rootdir, name, i);
/* FIXME: MKDEV uses illicit insider knowledge of kernel