2009.11.27 06:09 "[Tiff] Small static cleanup", by Adam Goode

2009.11.27 06:09 "[Tiff] [PATCH 2/2] Make display_sRGB static const", by Adam Goode

Making display_sRGB static and const moves the data to the rodata section, saving some per-process memory and speeding up library loading. It is not exported, so should be safe to make static.

---
 libtiff/tif_getimage.c | 2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libtiff/tif_getimage.c b/libtiff/tif_getimage.c
index 372bcb7..be60d3d 100644
--- a/libtiff/tif_getimage.c
+++ b/libtiff/tif_getimage.c
@@ -54,7 +54,7 @@ static const char photoTag[] = "PhotometricInterpretation";
  * Color conversion constants. We will define display types here.
  */

-TIFFDisplay display_sRGB = {
+static const TIFFDisplay display_sRGB = {

        {                       /* XYZ -> luminance matrix */

                {  3.2410F, -1.5374F, -0.4986F },
                {  -0.9692F, 1.8760F, 0.0416F },

--
1.6.5.2