diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2017-05-09 15:44:46 +0200 |
|---|---|---|
| committer | Even Rouault <even.rouault@spatialys.com> | 2017-05-09 20:46:20 +0200 |
| commit | 563bd8499e63db976ca8358216138647593354bc (patch) | |
| tree | 003599ed2b0cffd932d2122c3f72c142070efafd /src/bin/jpip/opj_jpip_test.c | |
| parent | d4e54e9f35d532062533f1d369c159810b01d224 (diff) | |
Reformat whole codebase with astyle.options (#128)
Diffstat (limited to 'src/bin/jpip/opj_jpip_test.c')
| -rw-r--r-- | src/bin/jpip/opj_jpip_test.c | 36 |
1 files changed, 19 insertions, 17 deletions
diff --git a/src/bin/jpip/opj_jpip_test.c b/src/bin/jpip/opj_jpip_test.c index 1b4fc1c6..f86ec4a6 100644 --- a/src/bin/jpip/opj_jpip_test.c +++ b/src/bin/jpip/opj_jpip_test.c @@ -51,23 +51,25 @@ int main(int argc, char *argv[]) { - int fd; - index_t *jp2idx; - if( argc < 2 ) return 1; - - if( (fd = open( argv[1], O_RDONLY)) == -1){ - fprintf( stderr, "Error: Target %s not found\n", argv[1]); - return -1; - } + int fd; + index_t *jp2idx; + if (argc < 2) { + return 1; + } - if( !(jp2idx = get_index_from_JP2file( fd))){ - fprintf( stderr, "JP2 file broken\n"); - return -1; - } - - output_index( jp2idx); - destroy_index( &jp2idx); - close(fd); + if ((fd = open(argv[1], O_RDONLY)) == -1) { + fprintf(stderr, "Error: Target %s not found\n", argv[1]); + return -1; + } - return 0; + if (!(jp2idx = get_index_from_JP2file(fd))) { + fprintf(stderr, "JP2 file broken\n"); + return -1; + } + + output_index(jp2idx); + destroy_index(&jp2idx); + close(fd); + + return 0; } /* main */ |
