Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Sunxi Tools
Commits
6f4f4f86
Commit
6f4f4f86
authored
May 04, 2012
by
Alejandro Mery
Browse files
cosmetical fixes
parent
61955af7
Changes
2
Hide whitespace changes
Inline
Side-by-side
bin2fex.c
View file @
6f4f4f86
...
...
@@ -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
;
...
...
fex2bin.c
View file @
6f4f4f86
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment