summaryrefslogtreecommitdiff
path: root/apps/tagcache.c
diff options
context:
space:
mode:
authorBoris Gjenero <dreamlayers@rockbox.org>2011-12-17 18:31:55 +0000
committerBoris Gjenero <dreamlayers@rockbox.org>2011-12-17 18:31:55 +0000
commit17ed3253fc98bcca59d70531a4d81b3be75dc7ea (patch)
tree9d1eee2029f442b207dcbb8ea1f75059e96b7d96 /apps/tagcache.c
parentf372212adf279d12c88d6bde948d11cf3ad002b3 (diff)
downloadrockbox-17ed3253fc98bcca59d70531a4d81b3be75dc7ea.tar.gz
rockbox-17ed3253fc98bcca59d70531a4d81b3be75dc7ea.zip
Add const to global pointers to strings.
When a global pointer is not declared as constant, gcc will put it in memory. Getting the address of the string it points to requires loading the address of the pointer and then loading the pointer. When the pointer is declared constant, the address of the string is loaded directly. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31345 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/tagcache.c')
-rw-r--r--apps/tagcache.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/tagcache.c b/apps/tagcache.c
index 99ef3f5587..ef642b1e3c 100644
--- a/apps/tagcache.c
+++ b/apps/tagcache.c
@@ -192,14 +192,14 @@ struct master_header {
192}; 192};
193 193
194/* For the endianess correction */ 194/* For the endianess correction */
195static const char *tagfile_entry_ec = "ll"; 195static const char * const tagfile_entry_ec = "ll";
196/** 196/**
197 Note: This should be (1 + TAG_COUNT) amount of l's. 197 Note: This should be (1 + TAG_COUNT) amount of l's.
198 */ 198 */
199static const char *index_entry_ec = "llllllllllllllllllllll"; 199static const char * const index_entry_ec = "llllllllllllllllllllll";
200 200
201static const char *tagcache_header_ec = "lll"; 201static const char * const tagcache_header_ec = "lll";
202static const char *master_header_ec = "llllll"; 202static const char * const master_header_ec = "llllll";
203 203
204static struct master_header current_tcmh; 204static struct master_header current_tcmh;
205 205