diff options
author | Pedro Vicente Nunes <pvn@hdfgroup.org> | 2008-06-25 21:08:48 (GMT) |
---|---|---|
committer | Pedro Vicente Nunes <pvn@hdfgroup.org> | 2008-06-25 21:08:48 (GMT) |
commit | 88982c9301c094c7d9c1eb2ae040dfc6907bbc87 (patch) | |
tree | 41e671d02f1ba1ef92b5dceac67a3d104f733aa8 /tools | |
parent | 604810e35c986a3c9c1fdc886807209345f8f139 (diff) | |
download | hdf5-88982c9301c094c7d9c1eb2ae040dfc6907bbc87.zip hdf5-88982c9301c094c7d9c1eb2ae040dfc6907bbc87.tar.gz hdf5-88982c9301c094c7d9c1eb2ae040dfc6907bbc87.tar.bz2 |
[svn-r15279] more code cleaning
Diffstat (limited to 'tools')
-rw-r--r-- | tools/h52jpeg/h52jpeg.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tools/h52jpeg/h52jpeg.c b/tools/h52jpeg/h52jpeg.c index bab1b45..7a21419 100644 --- a/tools/h52jpeg/h52jpeg.c +++ b/tools/h52jpeg/h52jpeg.c @@ -139,6 +139,21 @@ int main(int argc, const char *argv[]) exit(EXIT_FAILURE); } + + if ( HDstrcmp( image_type, "gray" ) == 0 ) + { + opt.image_type = 0; + } + else if ( HDstrcmp( image_type, "true" ) == 0 ) + { + opt.image_type = 1; + } + else + { + printf("<%s> is an invalid image type\n", image_type); + exit(EXIT_FAILURE); + } + break; } /* switch */ |