Commit de158a92 authored by Alejandro Mery's avatar Alejandro Mery
Browse files

fexc: fix error returning (closes #2)

parent 8fcf5def
......@@ -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);
......
......@@ -142,7 +142,7 @@ int script_generate_fex(FILE *out, const char *UNUSED(filename),
}
fputc('\n', out);
}
return 0;
return 1;
}
/*
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment