diff options
author | Jens Arnold <amiconn@rockbox.org> | 2004-08-03 19:22:56 +0000 |
---|---|---|
committer | Jens Arnold <amiconn@rockbox.org> | 2004-08-03 19:22:56 +0000 |
commit | 9478cc6f8a1f5155131bb001ed76e5309bfc4951 (patch) | |
tree | 8453ecfa3ac88269986000eb432441df318cd04c /apps | |
parent | 2b0694c6944f2ea155291b62a00c11b89cd63914 (diff) | |
download | rockbox-9478cc6f8a1f5155131bb001ed76e5309bfc4951.tar.gz rockbox-9478cc6f8a1f5155131bb001ed76e5309bfc4951.zip |
More const policeing step 4
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4983 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r-- | apps/neo/keyboard.c | 6 | ||||
-rw-r--r-- | apps/recorder/radio.c | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/apps/neo/keyboard.c b/apps/neo/keyboard.c index d81d7629b3..6dd315e16e 100644 --- a/apps/neo/keyboard.c +++ b/apps/neo/keyboard.c | |||
@@ -36,13 +36,13 @@ extern int button_add(unsigned int button); | |||
36 | 36 | ||
37 | #define KEYBOARD_MAX_LENGTH 255 | 37 | #define KEYBOARD_MAX_LENGTH 255 |
38 | 38 | ||
39 | static unsigned char* kbd_screens[3] = { | 39 | static const unsigned char* const kbd_screens[3] = { |
40 | "ABCDEFGHIJKLMNOPQRSTUVWXYZ", | 40 | "ABCDEFGHIJKLMNOPQRSTUVWXYZ", |
41 | "abcdefghijklmnopqrstuvwxyz", | 41 | "abcdefghijklmnopqrstuvwxyz", |
42 | " !\"#$%&'()*+,-./0123456789;<=>?@[]^_`{|}" | 42 | " !\"#$%&'()*+,-./0123456789;<=>?@[]^_`{|}" |
43 | }; | 43 | }; |
44 | 44 | ||
45 | static unsigned char* kbd_screens_names[3] = { | 45 | static const unsigned char* const kbd_screens_names[3] = { |
46 | "Capitals", | 46 | "Capitals", |
47 | "Small", | 47 | "Small", |
48 | "Others" | 48 | "Others" |
@@ -77,7 +77,7 @@ int kbd_input(char* text, int buflen) | |||
77 | int key; | 77 | int key; |
78 | int screen = 0; | 78 | int screen = 0; |
79 | int screenidx = -1; | 79 | int screenidx = -1; |
80 | unsigned char * pcurscreen = kbd_screens[0]; | 80 | const unsigned char * pcurscreen = kbd_screens[0]; |
81 | bool ctl; | 81 | bool ctl; |
82 | 82 | ||
83 | bufferlen = strlen(text); | 83 | bufferlen = strlen(text); |
diff --git a/apps/recorder/radio.c b/apps/recorder/radio.c index e26ac5bdc8..3bd50183c6 100644 --- a/apps/recorder/radio.c +++ b/apps/recorder/radio.c | |||
@@ -75,7 +75,7 @@ static int pll_cnt; | |||
75 | static bool presets_loaded = false; | 75 | static bool presets_loaded = false; |
76 | static struct fmstation presets[MAX_PRESETS]; | 76 | static struct fmstation presets[MAX_PRESETS]; |
77 | 77 | ||
78 | static char default_filename[] = "/.rockbox/fm-presets-default.fmr"; | 78 | static const char default_filename[] = "/.rockbox/fm-presets-default.fmr"; |
79 | 79 | ||
80 | int debug_fm_detection; | 80 | int debug_fm_detection; |
81 | 81 | ||