changeset 1569:7e6af32c8032

Minor cleanup.
author Matti Hamalainen <ccr@tnsp.org>
date Sun, 13 May 2018 07:56:47 +0300
parents 61495ea0767e
children 04769fa39dd4
files tools/gfxconv.c
diffstat 1 files changed, 2 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/tools/gfxconv.c	Sun May 13 07:47:29 2018 +0300
+++ b/tools/gfxconv.c	Sun May 13 07:56:47 2018 +0300
@@ -237,11 +237,10 @@
 
 BOOL dmGetC64FormatByExt(const char *fext, int *format, int *subformat)
 {
-    int i;
     if (fext == NULL)
         return FALSE;
 
-    for (i = 0; i < ndmC64ImageFormats; i++)
+    for (int i = 0; i < ndmC64ImageFormats; i++)
     {
         const DMC64ImageFormat *fmt = &dmC64ImageFormats[i];
         if (fmt->fext != NULL &&
@@ -260,11 +259,10 @@
 
 BOOL dmGetFormatByExt(const char *fext, int *format, int *subformat)
 {
-    int i;
     if (fext == NULL)
         return FALSE;
 
-    for (i = 0; i < nconvFormatList; i++)
+    for (int i = 0; i < nconvFormatList; i++)
     {
         const DMConvFormat *fmt = &convFormatList[i];
         if (fmt->fext != NULL &&