Commit 6f4f4f86 authored by Alejandro Mery's avatar Alejandro Mery
Browse files

cosmetical fixes

parent 61955af7
......@@ -146,11 +146,10 @@ static int decompile_section(void *bin, size_t UNUSED(bin_size),
FILE *out)
{
struct script_section_entry *entry = PTR(bin, section->offset<<2);
int i = section->length;
int ok = 1;
fprintf(out, "[%s]\n", section->name);
for (; i--; entry++) {
for (int i = section->length; i--; entry++) {
void *data = PTR(bin, entry->offset<<2);
unsigned type, length;
type = (entry->pattern >> 16) & 0xffff;
......
......@@ -115,7 +115,7 @@ int main(int argc, char *argv[])
script_delete(script);
goto done;
usage:
errf("Usage: %s [<script.fex> [<script.bin>]\n", argv[0]);
errf("Usage: %s [<script.fex> [<script.bin>]]\n", argv[0]);
done:
if (in && in != stdin) fclose(in);
......
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