diff view64.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/view64.c	Mon Nov 19 16:58:22 2012 +0200
+++ b/view64.c	Mon Nov 19 17:24:08 2012 +0200
@@ -47,7 +47,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],
@@ -155,7 +155,7 @@
     SDL_Surface *screen = NULL, *surf = NULL;
     DMImage bmap;
     BOOL initSDL = FALSE, exitFlag, needRedraw;
-    DMC64ImageFormat *fmt, *forced;
+    const DMC64ImageFormat *fmt = NULL, *forced;
     DMC64Image image;
     char *windowTitle;
     Uint8 *dataBuf = NULL;