summaryrefslogtreecommitdiffstats
path: root/apps/language.c
diff options
context:
space:
mode:
authorRafaël Carré <rafael.carre@gmail.com>2010-09-21 08:25:52 +0000
committerRafaël Carré <rafael.carre@gmail.com>2010-09-21 08:25:52 +0000
commit94f5f5b2fd89dc2d1bf42c2e1440da57f4e6611d (patch)
tree120c75638a93d72cba7c7a22e7fbf65cf5f222f3 /apps/language.c
parent7c339c937a619158f5e6a90d08c6830756fe9f47 (diff)
downloadrockbox-94f5f5b2fd89dc2d1bf42c2e1440da57f4e6611d.tar.gz
rockbox-94f5f5b2fd89dc2d1bf42c2e1440da57f4e6611d.tar.bz2
rockbox-94f5f5b2fd89dc2d1bf42c2e1440da57f4e6611d.zip
lang_load(): ignore unused field from the lang file
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28133 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/language.c')
-rw-r--r--apps/language.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/language.c b/apps/language.c
index 39903c4346..f8ec0a3087 100644
--- a/apps/language.c
+++ b/apps/language.c
@@ -65,7 +65,7 @@ int lang_load(const char *filename, const unsigned char *builtin,
int retcode=0;
unsigned char lang_header[HEADER_SIZE];
unsigned char sub_header[SUBHEADER_SIZE];
- unsigned int id, num_strings, foffset;
+ unsigned int id, foffset;
if(fd < 0)
return 1;
@@ -77,7 +77,9 @@ int lang_load(const char *filename, const unsigned char *builtin,
lseek(fd, user_num * SUBHEADER_SIZE, SEEK_CUR);
read(fd, sub_header, SUBHEADER_SIZE);
/* read in information about the requested lang */
- num_strings = (sub_header[0]<<8) | sub_header[1];
+#if 0 /* unused */
+ unsigned int num_strings = (sub_header[0]<<8) | sub_header[1];
+#endif
lang_size = (sub_header[2]<<8) | sub_header[3];
foffset = (sub_header[4]<<8) | sub_header[5];
if(lang_size <= max_lang_size) {