summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorAndrey Kiselev <dron@ak4719.spb.edu>2004-09-03 08:26:08 +0000
committerAndrey Kiselev <dron@ak4719.spb.edu>2004-09-03 08:26:08 +0000
commit95e3f76d06415b24e98d2b788feab5ca43d16a8a (patch)
tree117583cab22e2a786fe1168c5447e76eb84f1d8c /contrib
parente7976c2ad85efdf76eb9bed08490a93c58723e45 (diff)
downloadlibtiff-git-95e3f76d06415b24e98d2b788feab5ca43d16a8a.tar.gz
Avoid warnings.
Diffstat (limited to 'contrib')
-rw-r--r--contrib/dbs/tiff-grayscale.c7
-rw-r--r--contrib/dbs/tiff-palette.c7
-rw-r--r--contrib/dbs/tiff-rgb.c7
3 files changed, 12 insertions, 9 deletions
diff --git a/contrib/dbs/tiff-grayscale.c b/contrib/dbs/tiff-grayscale.c
index 33bb440c..c0b50f2e 100644
--- a/contrib/dbs/tiff-grayscale.c
+++ b/contrib/dbs/tiff-grayscale.c
@@ -1,4 +1,4 @@
-/* $Id: tiff-grayscale.c,v 1.3 2004-06-05 21:03:16 dron Exp $ */
+/* $Id: tiff-grayscale.c,v 1.4 2004-09-03 08:26:08 dron Exp $ */
/*
* tiff-grayscale.c -- create a Class G (grayscale) TIFF file
@@ -28,6 +28,7 @@
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
+#include <string.h>
#include "tiffio.h"
@@ -39,8 +40,8 @@ void Usage();
int main(int argc, char **argv)
{
- int bits_per_pixel, cmsize, i, j, k,
- gray_index, chunk_size, nchunks;
+ int bits_per_pixel = 8, cmsize, i, j, k,
+ gray_index, chunk_size = 32, nchunks = 16;
unsigned char * scan_line;
uint16 * gray;
float refblackwhite[2*1];
diff --git a/contrib/dbs/tiff-palette.c b/contrib/dbs/tiff-palette.c
index 0dbcaab5..a8e13509 100644
--- a/contrib/dbs/tiff-palette.c
+++ b/contrib/dbs/tiff-palette.c
@@ -1,4 +1,4 @@
-/* $Id: tiff-palette.c,v 1.2 2004-05-03 16:46:36 dron Exp $ */
+/* $Id: tiff-palette.c,v 1.3 2004-09-03 08:27:20 dron Exp $ */
/*
* tiff-palette.c -- create a Class P (palette) TIFF file
@@ -26,6 +26,7 @@
#include <stdio.h>
#include <stdlib.h>
+#include <string.h>
#include "tiffio.h"
@@ -38,8 +39,8 @@ void Usage();
int main(int argc, char **argv)
{
- int bits_per_pixel, cmsize, i, j, k,
- cmap_index, chunk_size, nchunks;
+ int bits_per_pixel = 8, cmsize, i, j, k,
+ cmap_index, chunk_size = 32, nchunks = 16;
unsigned char * scan_line;
uint16 *red, *green, *blue;
TIFF * tif;
diff --git a/contrib/dbs/tiff-rgb.c b/contrib/dbs/tiff-rgb.c
index 0ebbcf5b..e762ac63 100644
--- a/contrib/dbs/tiff-rgb.c
+++ b/contrib/dbs/tiff-rgb.c
@@ -1,4 +1,4 @@
-/* $Id: tiff-rgb.c,v 1.2 2004-05-03 16:46:36 dron Exp $ */
+/* $Id: tiff-rgb.c,v 1.3 2004-09-03 08:29:16 dron Exp $ */
/*
* tiff-rgb.c -- create a 24-bit Class R (rgb) TIFF file
@@ -27,6 +27,7 @@
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
+#include <string.h>
#include "tiffio.h"
@@ -41,8 +42,8 @@ char * programName;
int main(int argc, char **argv)
{
- char * input_file;
- double image_gamma;
+ char * input_file = NULL;
+ double image_gamma = TIFF_GAMMA;
int i, j;
TIFF * tif;
unsigned char * scan_line;