summaryrefslogtreecommitdiffstats
path: root/tools/mtd-utils/patches/133-error-fix.patch
diff options
context:
space:
mode:
authoracoul <acoul@3c298f89-4303-0410-b956-a3cf2f4a3e73>2010-10-01 16:39:08 +0000
committeracoul <acoul@3c298f89-4303-0410-b956-a3cf2f4a3e73>2010-10-01 16:39:08 +0000
commitf55c08db991c8d530fee53c06a51a84c9348bf57 (patch)
treeb7ae9cc90cf6977f5b575c5e45f4d3a57889ebf6 /tools/mtd-utils/patches/133-error-fix.patch
parent0af92c3edba0a538ce11c89021b62692d3548735 (diff)
tools/mtd-utils: update to mtd-utils-20101001, fix FreeBSD (and hopefully Darwin) build issues.
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23169 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'tools/mtd-utils/patches/133-error-fix.patch')
-rw-r--r--tools/mtd-utils/patches/133-error-fix.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/tools/mtd-utils/patches/133-error-fix.patch b/tools/mtd-utils/patches/133-error-fix.patch
new file mode 100644
index 000000000..ada1ea8e4
--- /dev/null
+++ b/tools/mtd-utils/patches/133-error-fix.patch
@@ -0,0 +1,20 @@
+--- a/mkfs.jffs2.c
++++ b/mkfs.jffs2.c
+@@ -471,7 +471,7 @@ static int interpret_table_entry(struct
+ if (entry) {
+ /* Check the type */
+ if ((mode & S_IFMT) != (entry->sb.st_mode & S_IFMT)) {
+- error_msg ("skipping device_table entry '%s': type mismatch!", name);
++ sys_errmsg ("skipping device_table entry '%s': type mismatch!", name);
+ free(name);
+ free(hostpath);
+ return 1;
+@@ -487,7 +487,7 @@ static int interpret_table_entry(struct
+ }
+ } else {
+ if (type == 'f' || type == 'l') {
+- error_msg ("skipping device_table entry '%s': file does not exist!", name);
++ sys_errmsg ("skipping device_table entry '%s': file does not exist!", name);
+ free(name);
+ free(hostpath);
+ return 1;