summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoger Leigh <rleigh@codelibre.net>2021-02-03 21:19:06 +0000
committerRoger Leigh <rleigh@codelibre.net>2021-02-03 21:19:06 +0000
commita3a43d5324680e2f64a8969c78a5bdb540654c1a (patch)
tree535ea66d0e31b2ea0cb6754f8e62a06ff4f0ee92
parentd56798f63cbac3ea45a55b6a476e52b96909bb39 (diff)
parent303bd9bb008090fd85c8d958f072980ae34ac0fe (diff)
downloadlibtiff-git-a3a43d5324680e2f64a8969c78a5bdb540654c1a.tar.gz
Merge branch 'tiff2ps-const' into 'master'
tiff2ps.c: string literals must be const char *, not char * See merge request libtiff/libtiff!202
-rw-r--r--tools/tiff2ps.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/tiff2ps.c b/tools/tiff2ps.c
index 3a653072..9a093d25 100644
--- a/tools/tiff2ps.c
+++ b/tools/tiff2ps.c
@@ -629,7 +629,7 @@ static const char RGBcolorimage[] = "\
* It is claimed to be part of some future revision of the EPS spec.
*/
static void
-PhotoshopBanner(FILE* fd, uint32_t w, uint32_t h, int bs, int nc, char* startline)
+PhotoshopBanner(FILE* fd, uint32_t w, uint32_t h, int bs, int nc, const char* startline)
{
fprintf(fd, "%%ImageData: %"PRIu32" %"PRIu32" %"PRIu16" %d 0 %d 2 \"",
w, h, bitspersample, nc, bs);
@@ -1824,7 +1824,7 @@ PS_Lvl2ImageDict(FILE* fd, TIFF* tif, uint32_t w, uint32_t h)
uint16_t predictor, minsamplevalue, maxsamplevalue;
uint32_t repeat_count;
char im_h[64], im_x[64], im_y[64];
- char * imageOp = "image";
+ const char * imageOp = "image";
if ( useImagemask && (bitspersample == 1) )
imageOp = "imagemask";