comparison tools/lib64fmts.c @ 1684:e7990551c6d6

Rename function variable.
author Matti Hamalainen <ccr@tnsp.org>
date Thu, 31 May 2018 17:25:35 +0300
parents dd9528cdd14a
children 1036b0dcccb5
comparison
equal deleted inserted replaced
1683:187a9f3c9e88 1684:e7990551c6d6
392 392
393 static int fmtProbeTruePaintPacked(const Uint8 *buf, const size_t len, const DMC64ImageFormat *fmt) 393 static int fmtProbeTruePaintPacked(const Uint8 *buf, const size_t len, const DMC64ImageFormat *fmt)
394 { 394 {
395 // The beginning/un-changing part of the BASIC bootstrap and 395 // The beginning/un-changing part of the BASIC bootstrap and
396 // relocation of decompression code 396 // relocation of decompression code
397 static const Uint8 signature[] = { 397 static const Uint8 magicID[] = {
398 0x0b, 0x08, 0x09, 0x00, 0x9e, 0x32, 0x30, 0x35, 398 0x0b, 0x08, 0x09, 0x00, 0x9e, 0x32, 0x30, 0x35,
399 0x39, 0x00, 0xa2, 0x00, 0x78, 0xbd, 0x1c, 0x08, 399 0x39, 0x00, 0xa2, 0x00, 0x78, 0xbd, 0x1c, 0x08,
400 0x9d, 0xf5, 0x00, 0xe8, 0xd0, 0xf7, 0xe6, 0x01, 400 0x9d, 0xf5, 0x00, 0xe8, 0xd0, 0xf7, 0xe6, 0x01,
401 0x4c, 0x01, 0x01, 0xa5, 0xfe, 0xd0, 0x02, 0xc6, 401 0x4c, 0x01, 0x01, 0xa5, 0xfe, 0xd0, 0x02, 0xc6,
402 0xff, 0xc6, 0xfe 402 0xff, 0xc6, 0xfe
403 }; 403 };
404 404
405 if (len >= 512 && dmCompareAddr16(buf, 0, fmt->addr) && 405 if (len >= 512 && dmCompareAddr16(buf, 0, fmt->addr) &&
406 memcmp(buf + 2, signature, sizeof(signature)) == 0) 406 memcmp(buf + 2, magicID, sizeof(magicID)) == 0)
407 return DM_PROBE_SCORE_MAX; 407 return DM_PROBE_SCORE_MAX;
408 408
409 return DM_PROBE_SCORE_FALSE; 409 return DM_PROBE_SCORE_FALSE;
410 } 410 }
411 411