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
8b85878f
Commit
8b85878f
authored
May 10, 2012
by
Alejandro Mery
Browse files
fexc: set formats for bin2fex and implement -q
parent
90e67cba
Changes
1
Show whitespace changes
Inline
Side-by-side
fexc.c
View file @
8b85878f
...
...
@@ -60,6 +60,9 @@ int main(int argc, char *argv[])
int
opt
;
int
verbose
=
0
;
if
(
app_mode
==
2
)
/* bin2fex */
infmt
=
1
,
outfmt
=
0
;
while
((
opt
=
getopt
(
argc
,
argv
,
opt_string
))
!=
-
1
)
{
switch
(
opt
)
{
case
'I'
:
...
...
@@ -89,11 +92,18 @@ int main(int argc, char *argv[])
case
'v'
:
verbose
++
;
break
;
case
'q'
:
verbose
--
;
break
;
default:
show_usage:
app_usage
(
argv
[
0
],
app_mode
);
exit
(
1
);
}
}
if
(
verbose
>
0
)
errf
(
"%s: %s -> %s
\n
"
,
argv
[
0
],
formats
[
infmt
],
formats
[
outfmt
]);
return
1
;
}
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