diff options
author | Andrey Kiselev <dron@ak4719.spb.edu> | 2004-06-05 08:13:06 +0000 |
---|---|---|
committer | Andrey Kiselev <dron@ak4719.spb.edu> | 2004-06-05 08:13:06 +0000 |
commit | 19421d5e883381329937fd5bb82b92603fd5fd47 (patch) | |
tree | d9e968e53a278dd2e2f0ef8073a5d16c39a40c15 /tools/tiffinfo.c | |
parent | b5bb4b9065e697866ccb1c7f71dac5c3c54d5917 (diff) | |
download | libtiff-git-19421d5e883381329937fd5bb82b92603fd5fd47.tar.gz |
Avoid warnings.
Diffstat (limited to 'tools/tiffinfo.c')
-rw-r--r-- | tools/tiffinfo.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/tools/tiffinfo.c b/tools/tiffinfo.c index 88aa492d..dbb94d7a 100644 --- a/tools/tiffinfo.c +++ b/tools/tiffinfo.c @@ -1,4 +1,4 @@ -/* $Id: tiffinfo.c,v 1.4 2004-06-04 11:50:09 dron Exp $ */ +/* $Id: tiffinfo.c,v 1.5 2004-06-05 08:13:06 dron Exp $ */ /* * Copyright (c) 1988-1997 Sam Leffler @@ -30,7 +30,7 @@ #include "tiffio.h" -#define streq(a,b) (strcmp(a,b) == 0) +#define streq(a,b) (strcasecmp(a,b) == 0) int showdata = 0; /* show data */ int rawdata = 0; /* show raw/decoded data */ @@ -44,8 +44,7 @@ static void tiffinfo(TIFF*, uint16, long); int main(int argc, char* argv[]) { - tdir_t dirnum = -1; - int multiplefiles, c; + int dirnum = -1, multiplefiles, c; uint16 order = 0; TIFF* tif; extern int optind; @@ -114,7 +113,7 @@ main(int argc, char* argv[]) tif = TIFFOpen(argv[optind], chopstrips ? "rC" : "rc"); if (tif != NULL) { if (dirnum != -1) { - if (TIFFSetDirectory(tif, dirnum)) + if (TIFFSetDirectory(tif, (tdir_t) dirnum)) tiffinfo(tif, order, flags); } else if (diroff != 0) { if (TIFFSetSubDirectory(tif, diroff)) |