summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2004-07-20 19:13:46 +0000
committerJens Arnold <amiconn@rockbox.org>2004-07-20 19:13:46 +0000
commitc50a069e6e4425a47643dd961b172b5993e9bc8e (patch)
tree7e9651e8dcaf115d8e577f44c2573c06e909040c
parent80ebaabf80f0e8640b15f68b3d50c7268708d54f (diff)
downloadrockbox-c50a069e6e4425a47643dd961b172b5993e9bc8e.tar.gz
rockbox-c50a069e6e4425a47643dd961b172b5993e9bc8e.zip
More const policeing, removed unused variable
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4901 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/settings.c5
-rw-r--r--apps/settings.h1
2 files changed, 2 insertions, 4 deletions
diff --git a/apps/settings.c b/apps/settings.c
index c86957d3c8..4c1f8afc3b 100644
--- a/apps/settings.c
+++ b/apps/settings.c
@@ -67,7 +67,6 @@
67void dac_line_in(bool enable); 67void dac_line_in(bool enable);
68#endif 68#endif
69struct user_settings global_settings; 69struct user_settings global_settings;
70char rockboxdir[] = ROCKBOX_DIR; /* config/font/data file directory */
71char rec_base_directory[] = REC_BASE_DIR; 70char rec_base_directory[] = REC_BASE_DIR;
72 71
73 72
@@ -152,7 +151,7 @@ static const char graphic_numeric[] = "graphic,numeric";
152 151
153/* the part of the settings which ends up in the RTC RAM, where available 152/* the part of the settings which ends up in the RTC RAM, where available
154 (those we either need early, save frequently, or without spinup) */ 153 (those we either need early, save frequently, or without spinup) */
155static struct bit_entry rtc_bits[] = 154static const struct bit_entry rtc_bits[] =
156{ 155{
157 /* placeholder, containing the size information */ 156 /* placeholder, containing the size information */
158 {9, 0, 0, 0, NULL, NULL }, /* 9 bit to tell how far this is populated */ 157 {9, 0, 0, 0, NULL, NULL }, /* 9 bit to tell how far this is populated */
@@ -231,7 +230,7 @@ static struct bit_entry rtc_bits[] =
231 230
232 231
233/* the part of the settings which ends up in HD sector only */ 232/* the part of the settings which ends up in HD sector only */
234static struct bit_entry hd_bits[] = 233static const struct bit_entry hd_bits[] =
235{ 234{
236 /* This table starts after the 44 RTC bytes = 352 bits. */ 235 /* This table starts after the 44 RTC bytes = 352 bits. */
237 /* Here we need 11 bits to tell how far this is populated. */ 236 /* Here we need 11 bits to tell how far this is populated. */
diff --git a/apps/settings.h b/apps/settings.h
index 0ca0e7d7f2..cf53ae736c 100644
--- a/apps/settings.h
+++ b/apps/settings.h
@@ -262,7 +262,6 @@ unsigned int rec_timesplit_seconds(void);
262extern struct user_settings global_settings; 262extern struct user_settings global_settings;
263/* name of directory where configuration, fonts and other data 263/* name of directory where configuration, fonts and other data
264 * files are stored */ 264 * files are stored */
265extern char rockboxdir[];
266extern long lasttime; 265extern long lasttime;
267 266
268/* Recording base directory */ 267/* Recording base directory */