From b2a5e4e13891b65297ae740bf72d5cf2c84c3607 Mon Sep 17 00:00:00 2001 From: Nils Wallménius Date: Mon, 9 Aug 2010 15:52:04 +0000 Subject: Mark constant array as 'const' and use a smaller datatype. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27762 a1c6a512-1295-4272-9138-f99709370657 --- apps/recorder/albumart.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/recorder/albumart.c b/apps/recorder/albumart.c index 6b43576698..7dab0ea187 100644 --- a/apps/recorder/albumart.c +++ b/apps/recorder/albumart.c @@ -98,7 +98,7 @@ static void fix_path_part(char* path, int offset, int count) #ifdef USE_JPEG_COVER static const char * extensions[] = { "jpeg", "jpg", "bmp" }; -static int extension_lens[] = { 4, 3, 3 }; +static const unsigned char extension_lens[] = { 4, 3, 3 }; /* Try checking for several file extensions, return true if a file is found and * leaving the path modified to include the matching extension. */ -- cgit v1.2.3