From: "Steven J. Hill" Date: Tue, 6 Feb 2007 18:09:54 +0000 (-0000) Subject: Wrong sign dufus. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ceaa6db26eaafc27ba6792da34fef89b21558e74;p=buildroot.git Wrong sign dufus. --- diff --git a/package/mtd/mtd.patch b/package/mtd/mtd.patch index 31fb5e91b2..40d6865cc8 100644 --- a/package/mtd/mtd.patch +++ b/package/mtd/mtd.patch @@ -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); continue; - } 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); bbtest = 0; } else if (ret < 0) {