aboutsummaryrefslogtreecommitdiff
path: root/meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc/libmtd.c.patch
blob: f32fb70a14ba8ba6de2e164ec6ae558eff5e3240 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
--- a/lib/libmtd.c	2012-04-29 21:44:52.000000000 +0200
+++ b/lib/libmtd.c	2012-04-29 21:43:04.000000000 +0200
@@ -441,8 +441,8 @@
 		return -1;
 	}
 
-	major = major(st.st_rdev);
-	minor = minor(st.st_rdev);
+	major = __major(st.st_rdev);
+	minor = __minor(st.st_rdev);
 
 	if (mtd_get_info((libmtd_t *)lib, &info))
 		return -1;
@@ -1381,8 +1381,8 @@
 		return -1;
 	}
 
-	major = major(st.st_rdev);
-	minor = minor(st.st_rdev);
+	major = __major(st.st_rdev);
+	minor = __minor(st.st_rdev);
 
 	if (mtd_get_info((libmtd_t *)lib, &info))
 		return -1;