mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-08-02 07:57:43 +00:00
Wrong sign dufus.
This commit is contained in:
parent
b79483adc1
commit
ceaa6db26e
@ -15,7 +15,7 @@ diff -ur mtd-20050122.orig/util/flash_eraseall.c mtd-20050122.orig-patched/util/
|
|||||||
printf ("\nSkipping bad block at 0x%08x\n", erase.start);
|
printf ("\nSkipping bad block at 0x%08x\n", erase.start);
|
||||||
continue;
|
continue;
|
||||||
- } else if (ret == -EOPNOTSUPP) {
|
- } else if (ret == -EOPNOTSUPP) {
|
||||||
+ } else if (errno == -EOPNOTSUPP) {
|
+ } else if (errno == EOPNOTSUPP) {
|
||||||
fprintf(stderr, "%s: %s: Bad block check not available\n", exe_name, mtd_device);
|
fprintf(stderr, "%s: %s: Bad block check not available\n", exe_name, mtd_device);
|
||||||
bbtest = 0;
|
bbtest = 0;
|
||||||
} else if (ret < 0) {
|
} else if (ret < 0) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user