comparison tools/gfxconv.c @ 1569:7e6af32c8032

Minor cleanup.
author Matti Hamalainen <ccr@tnsp.org>
date Sun, 13 May 2018 07:56:47 +0300
parents ba09aa661c72
children f1b279ba47a8
comparison
equal deleted inserted replaced
1568:61495ea0767e 1569:7e6af32c8032
235 } 235 }
236 236
237 237
238 BOOL dmGetC64FormatByExt(const char *fext, int *format, int *subformat) 238 BOOL dmGetC64FormatByExt(const char *fext, int *format, int *subformat)
239 { 239 {
240 int i;
241 if (fext == NULL) 240 if (fext == NULL)
242 return FALSE; 241 return FALSE;
243 242
244 for (i = 0; i < ndmC64ImageFormats; i++) 243 for (int i = 0; i < ndmC64ImageFormats; i++)
245 { 244 {
246 const DMC64ImageFormat *fmt = &dmC64ImageFormats[i]; 245 const DMC64ImageFormat *fmt = &dmC64ImageFormats[i];
247 if (fmt->fext != NULL && 246 if (fmt->fext != NULL &&
248 strcasecmp(fext, fmt->fext) == 0) 247 strcasecmp(fext, fmt->fext) == 0)
249 { 248 {
258 257
259 258
260 259
261 BOOL dmGetFormatByExt(const char *fext, int *format, int *subformat) 260 BOOL dmGetFormatByExt(const char *fext, int *format, int *subformat)
262 { 261 {
263 int i;
264 if (fext == NULL) 262 if (fext == NULL)
265 return FALSE; 263 return FALSE;
266 264
267 for (i = 0; i < nconvFormatList; i++) 265 for (int i = 0; i < nconvFormatList; i++)
268 { 266 {
269 const DMConvFormat *fmt = &convFormatList[i]; 267 const DMConvFormat *fmt = &convFormatList[i];
270 if (fmt->fext != NULL && 268 if (fmt->fext != NULL &&
271 strcasecmp(fext, fmt->fext) == 0) 269 strcasecmp(fext, fmt->fext) == 0)
272 { 270 {