From: Antonio Ospite Date: Sat, 29 Jun 2013 22:15:30 +0000 (+0200) Subject: am7xxx-play: uniform coding style X-Git-Tag: v0.1.4~25 X-Git-Url: https://git.ao2.it/libam7xxx.git/commitdiff_plain/4c7287240fd97699708dd835aca141e6ac8bd036 am7xxx-play: uniform coding style Uniform the coding style of error paths to the one use throughout in the file. --- diff --git a/examples/am7xxx-play.c b/examples/am7xxx-play.c index e958eee..21e5187 100644 --- 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); - exit(EXIT_FAILURE); + ret = -EINVAL; + goto out; } break; case 'h':