# HG changeset patch # User Matti Hamalainen # Date 1526187407 -10800 # Node ID 7e6af32c8032e706f95ab2b2adddb298008c2834 # Parent 61495ea0767e9a3a32112d6a59ca61ca17ebabeb Minor cleanup. diff -r 61495ea0767e -r 7e6af32c8032 tools/gfxconv.c --- 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 &&