tools/mtd-utils: fix compilation on OS X
[openwrt.git] / tools / mtd-utils / patches / 133-error-fix.patch
1 --- a/mkfs.jffs2.c
2 +++ b/mkfs.jffs2.c
3 @@ -471,7 +471,7 @@ static int interpret_table_entry(struct 
4         if (entry) {
5                 /* Check the type */
6                 if ((mode & S_IFMT) != (entry->sb.st_mode & S_IFMT)) {
7 -                       error_msg ("skipping device_table entry '%s': type mismatch!", name);
8 +                       sys_errmsg ("skipping device_table entry '%s': type mismatch!", name);
9                         free(name);
10                         free(hostpath);
11                         return 1;
12 @@ -487,7 +487,7 @@ static int interpret_table_entry(struct 
13                 }
14         } else {
15                 if (type == 'f' || type == 'l') {
16 -                       error_msg ("skipping device_table entry '%s': file does not exist!", name);
17 +                       sys_errmsg ("skipping device_table entry '%s': file does not exist!", name);
18                         free(name);
19                         free(hostpath);
20                         return 1;