* libtiff/tif_print.c: constify photoNames and orientNames arrays

This commit is contained in:
Even Rouault 2015-12-06 22:19:56 +00:00
parent e4df80bf75
commit fdda780a4b
2 changed files with 7 additions and 3 deletions

View File

@ -1,3 +1,7 @@
2015-12-06 Even Rouault <even.rouault at spatialys.com>
* libtiff/tif_print.c: constify photoNames and orientNames arrays
2015-12-06 Even Rouault <even.rouault at spatialys.com>
* libtiff/tif_close.c, libtiff/tif_extension.c : rename link

View File

@ -1,4 +1,4 @@
/* $Id: tif_print.c,v 1.63 2015-10-17 10:13:14 erouault Exp $ */
/* $Id: tif_print.c,v 1.64 2015-12-06 22:19:56 erouault Exp $ */
/*
* Copyright (c) 1988-1997 Sam Leffler
@ -37,7 +37,7 @@
static void
_TIFFprintAsciiBounded(FILE* fd, const char* cp, size_t max_chars);
static const char *photoNames[] = {
static const char * const photoNames[] = {
"min-is-white", /* PHOTOMETRIC_MINISWHITE */
"min-is-black", /* PHOTOMETRIC_MINISBLACK */
"RGB color", /* PHOTOMETRIC_RGB */
@ -52,7 +52,7 @@ static const char *photoNames[] = {
};
#define NPHOTONAMES (sizeof (photoNames) / sizeof (photoNames[0]))
static const char *orientNames[] = {
static const char * const orientNames[] = {
"0 (0x0)",
"row 0 top, col 0 lhs", /* ORIENTATION_TOPLEFT */
"row 0 top, col 0 rhs", /* ORIENTATION_TOPRIGHT */