From 463723f587a05a5ddbee049ff3275398ea67762f Mon Sep 17 00:00:00 2001
From: Andrey Kiselev <[EMAIL REDACTED]>
Date: Thu, 12 Jul 2007 17:25:44 +0000
Subject: [PATCH] *** empty log message ***
---
ChangeLog | 6 ++++++
tools/tiff2pdf.c | 6 ++++--
2 files changed, 10 insertions(+), 2 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 9c6ab777..fa9cc9ed 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2007-07-12 Andrey Kiselev <dron@ak4719.spb.edu>
+
+ * tools/tiff2pdf.c: Added missed extern optind as per bug
+
+ http://bugzilla.remotesensing.org/show_bug.cgi?id=1567
+
2007-07-03 Andrey Kiselev <dron@ak4719.spb.edu>
* tools/tiff2ps.c: Added support 16-bit images as per bug
diff --git a/tools/tiff2pdf.c b/tools/tiff2pdf.c
index 2ac33fd0..65df421a 100644
--- a/tools/tiff2pdf.c
+++ b/tools/tiff2pdf.c
@@ -1,4 +1,4 @@
-/* $Id: tiff2pdf.c,v 1.37.2.3 2007-07-03 15:26:13 dron Exp $
+/* $Id: tiff2pdf.c,v 1.37.2.4 2007-07-12 17:25:44 dron Exp $
*
* tiff2pdf - converts a TIFF image to a PDF document
*
@@ -537,6 +537,7 @@ t2p_unmapproc(thandle_t handle, tdata_t data, toff_t offset)
int main(int argc, char** argv){
extern char *optarg;
+ extern int optind;
const char *outfilename = NULL;
T2P *t2p = NULL;
TIFF *input = NULL, *output = NULL;
@@ -2593,8 +2594,9 @@ tsize_t t2p_readwrite_pdf_image(T2P* t2p, TIFF* input, TIFF* output){
bufferoffset = TIFFWriteEncodedStrip(output, (tstrip_t)0,
buffer,
stripsize * stripcount);
- } else {
+ } else
#endif
+ {
bufferoffset = TIFFWriteEncodedStrip(output, (tstrip_t)0,
buffer,
t2p->tiff_datasize);