fexc: fix error returning (closes #2)

This commit is contained in:
Alejandro Mery 2012-06-14 14:11:15 +02:00
parent 8fcf5def3a
commit de158a9273
2 changed files with 3 additions and 4 deletions

5
fexc.c
View File

@ -27,7 +27,7 @@
#include <fcntl.h>
#define pr_info(...) errf("fexc: " __VA_ARGS__)
#define pr_err(...) pr_info("E: " __VA_ARGS__)
#define pr_err(...) errf("E: fexc: " __VA_ARGS__)
enum script_format {
FEX_SCRIPT_FORMAT,
@ -197,8 +197,7 @@ static inline int script_generate(enum script_format format,
break;
}
}
if (bin_size == 0)
ret = 0;
ret = (bin_size == 0);
}
free(bin);
close(out);

View File

@ -142,7 +142,7 @@ int script_generate_fex(FILE *out, const char *UNUSED(filename),
}
fputc('\n', out);
}
return 0;
return 1;
}
/*