mirror of
https://git.yoctoproject.org/poky
synced 2026-06-01 13:09:50 +00:00
mtd-utils: Backport and create patches to support musl
(From OE-Core rev: 9a4ab3b1ad45a556b845530a12ec865be2278c78) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
Replace rpmatch() usage with checking first character of line
|
||||
|
||||
Upstream-Status: Pending
|
||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
|
||||
--- a/include/common.h
|
||||
+++ b/include/common.h
|
||||
@@ -122,10 +122,12 @@
|
||||
}
|
||||
|
||||
if (strcmp("\n", line) != 0) {
|
||||
- switch (rpmatch(line)) {
|
||||
- case 0: ret = false; break;
|
||||
- case 1: ret = true; break;
|
||||
- case -1:
|
||||
+ switch (line[0]) {
|
||||
+ case 'N':
|
||||
+ case 'n': ret = false; break;
|
||||
+ case 'Y':
|
||||
+ case 'y': ret = true; break;
|
||||
+ default:
|
||||
puts("unknown response; please try again");
|
||||
continue;
|
||||
}
|
||||
Reference in New Issue
Block a user