Clean up white space.

Define the PNG magic number as a mixture of hex and ASCII, to make it a
bit clearer what's going on.

svn path=/trunk/; revision=47378
This commit is contained in:
Guy Harris 2013-01-30 22:55:32 +00:00
parent e9479b543f
commit b2fd895135
1 changed files with 4 additions and 4 deletions

View File

@ -73,16 +73,16 @@ static const guint8 jpeg_jfif_magic[] = { 0xFF, 0xD8, /* SOF */
/* <?xml */
static const guint8 xml_magic[] = { '<', '?', 'x', 'm', 'l' };
static const guint8 png_magic[] = { 137, 80, 78, 71, 13, 10, 26, 10 };
static const guint8 png_magic[] = { 0x89, 'P', 'N', 'G', '\r', '\n', 0x1A, '\n' };
static const guint8 gif87a_magic[] = { 'G', 'I', 'F', '8', '7', 'a'};
static const guint8 gif89a_magic[] = { 'G', 'I', 'F', '8', '9', 'a'};
static const mime_files_t magic_files[] = {
{ jpeg_jfif_magic, sizeof(jpeg_jfif_magic) },
{ xml_magic, sizeof(xml_magic) },
{ png_magic, sizeof(png_magic) },
{ gif87a_magic, sizeof(gif87a_magic) },
{ gif89a_magic, sizeof(gif89a_magic) }
{ png_magic, sizeof(png_magic) },
{ gif87a_magic, sizeof(gif87a_magic) },
{ gif89a_magic, sizeof(gif89a_magic) }
};
#define N_MAGIC_TYPES (sizeof(magic_files) / sizeof(magic_files[0]))