projects
/
libam7xxx.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
3c1290c
)
am7xxx-play: uniform coding style
author
Antonio Ospite <ospite@studenti.unina.it>
Sat, 29 Jun 2013 22:15:30 +0000
(
00:15
+0200)
committer
Antonio Ospite <ospite@studenti.unina.it>
Sat, 20 Jul 2013 22:18:03 +0000
(
00:18
+0200)
Uniform the coding style of error paths to the one use throughout in the
file.
examples/am7xxx-play.c
patch
|
blob
|
history
diff --git
a/examples/am7xxx-play.c
b/examples/am7xxx-play.c
index
e958eee
..
21e5187
100644
(file)
--- a/
examples/am7xxx-play.c
+++ b/
examples/am7xxx-play.c
@@
-762,7
+762,8
@@
int main(int argc, char *argv[])
default:
fprintf(stderr, "Invalid zoom mode value, must be between %d and %d\n",
AM7XXX_ZOOM_ORIGINAL, AM7XXX_ZOOM_TEST);
default:
fprintf(stderr, "Invalid zoom mode value, must be between %d and %d\n",
AM7XXX_ZOOM_ORIGINAL, AM7XXX_ZOOM_TEST);
- exit(EXIT_FAILURE);
+ ret = -EINVAL;
+ goto out;
}
break;
case 'h':
}
break;
case 'h':