changeset 1382:558776ee9603

Cosmetics.
author Matti Hamalainen <ccr@tnsp.org>
date Sun, 24 Sep 2017 20:48:52 +0300
parents b6782b785457
children 3bcf02e5a375
files tools/lib64gfx.c
diffstat 1 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/tools/lib64gfx.c	Sun Sep 24 19:51:23 2017 +0300
+++ b/tools/lib64gfx.c	Sun Sep 24 20:48:52 2017 +0300
@@ -319,10 +319,9 @@
 
 static int fmtProbeDrazLace10Packed(const Uint8 *buf, const size_t len, const DMC64ImageFormat *fmt)
 {
-    const char *ident = (const char *) buf + 2;
     if (len > 22 &&
         dmCompareAddr16(buf, 0, fmt->addr) &&
-        strncmp(ident, "DRAZLACE! 1.0", 13) == 0)
+        strncmp((const char *) (buf + 2), "DRAZLACE! 1.0", 13) == 0)
         return DM_PROBE_SCORE_MAX;
 
     return DM_PROBE_SCORE_FALSE;
@@ -729,7 +728,7 @@
             { DT_COLOR_RAM,    XX2_BSIZE + XX2_SIZE, 0,  XX2_SIZE, NULL, NULL },
             { DT_SCREEN_RAM,   XX2_BSIZE, 0,  XX2_SIZE, NULL, NULL },
 
-            { DT_COLOR_SET,    11  , 0,  DC_BGCOL, NULL, NULL },
+            { DT_COLOR_SET,    11,     0,  DC_BGCOL, NULL, NULL },
             { DT_LAST,         0,      0,  0, NULL, NULL },
         }
     },