mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-28 01:28:59 +00:00
e273860351
This callback should have one parameter less, this parameter is not used so this was not a so big problem. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
20 lines
456 B
Diff
20 lines
456 B
Diff
--- a/include/common.h
|
|
+++ b/include/common.h
|
|
@@ -152,10 +152,12 @@ static inline bool prompt(const char *ms
|
|
}
|
|
|
|
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;
|
|
}
|