diff gfxconv.c @ 516:6f141f760c54

Constify.
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 19 Nov 2012 17:24:08 +0200
parents e8e244036ee4
children 5b37a2e427b7
line wrap: on
line diff
--- a/gfxconv.c	Mon Nov 19 16:58:22 2012 +0200
+++ b/gfxconv.c	Mon Nov 19 17:24:08 2012 +0200
@@ -181,7 +181,7 @@
     printf("\nAvailable bitmap formats:\n");
     for (i = 0; i < ndmC64ImageFormats; i++)
     {
-        DMC64ImageFormat *fmt = &dmC64ImageFormats[i];
+        const DMC64ImageFormat *fmt = &dmC64ImageFormats[i];
         printf("%3d | %-5s | %-15s | %s\n",
             i, fmt->extension,
             dmC64ImageTypeNames[fmt->type],
@@ -1361,7 +1361,7 @@
 int main(int argc, char *argv[])
 {
     FILE *inFile;
-    DMC64ImageFormat *cfmt;
+    const DMC64ImageFormat *cfmt;
     DMC64Image cimage;
     Uint8 *dataBuf = NULL;
     size_t dataSize;
@@ -1422,7 +1422,7 @@
     if (optInFormat == FFMT_AUTO || optInFormat == FFMT_BITMAP)
     {
         // Probe for format
-        DMC64ImageFormat *forced = NULL;
+        const DMC64ImageFormat *forced = NULL;
         int res;
 
         if (optForcedFormat >= 0)