summaryrefslogtreecommitdiffstats
path: root/meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc/libubi.c.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc/libubi.c.patch')
-rw-r--r--meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc/libubi.c.patch44
1 files changed, 0 insertions, 44 deletions
diff --git a/meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc/libubi.c.patch b/meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc/libubi.c.patch
index 8278a4fc7..db95904ea 100644
--- a/meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc/libubi.c.patch
+++ b/meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc/libubi.c.patch
@@ -1,27 +1,5 @@
1--- a/ubi-utils/libubi.c 2012-05-01 01:57:51.000000000 +0200 1--- a/ubi-utils/libubi.c 2012-05-01 01:57:51.000000000 +0200
2+++ b/ubi-utils/libubi.c 2012-05-01 01:55:14.000000000 +0200 2+++ b/ubi-utils/libubi.c 2012-05-01 01:55:14.000000000 +0200
3@@ -382,8 +402,8 @@
4 return errmsg("\"%s\" is not a character device", node);
5 }
6
7- major = major(st.st_rdev);
8- minor = minor(st.st_rdev);
9+ major = __major(st.st_rdev);
10+ minor = __minor(st.st_rdev);
11
12 if (minor == 0) {
13 errno = EINVAL;
14@@ -448,8 +468,8 @@
15 return errmsg("\"%s\" is not a character device", node);
16 }
17
18- major = major(st.st_rdev);
19- minor = minor(st.st_rdev);
20+ major = __major(st.st_rdev);
21+ minor = __minor(st.st_rdev);
22
23 if (minor != 0) {
24 errno = EINVAL;
25@@ -686,7 +706,7 @@ 3@@ -686,7 +706,7 @@
26 * success and %-1 in case of failure. @r->ubi_num contains newly created UBI 4 * success and %-1 in case of failure. @r->ubi_num contains newly created UBI
27 * device number. 5 * device number.
@@ -31,25 +9,3 @@
31 { 9 {
32 int fd, ret; 10 int fd, ret;
33 11
34@@ -757,8 +777,8 @@
35 mtd_dev_node);
36 }
37
38- major = major(sb.st_rdev);
39- minor = minor(sb.st_rdev);
40+ major = __major(sb.st_rdev);
41+ minor = __minor(sb.st_rdev);
42
43 if (major != MTD_CHAR_MAJOR) {
44 errno = EINVAL;
45@@ -866,8 +886,8 @@
46 return -1;
47 }
48
49- major = major(st.st_rdev);
50- minor = minor(st.st_rdev);
51+ major = __major(st.st_rdev);
52+ minor = __minor(st.st_rdev);
53
54 if (ubi_get_info((libubi_t *)lib, &info))
55 return -1;