summaryrefslogtreecommitdiffstats
path: root/apps/recorder
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2004-08-01 23:34:44 +0000
committerJens Arnold <amiconn@rockbox.org>2004-08-01 23:34:44 +0000
commit839067b7b306e2da5142c3f31747205df8f9e4f5 (patch)
tree819e416c7a30d48de0a2160a2989d7f495d921cc /apps/recorder
parent1413f0cc953d92d91411d2d871fc4d44a294e82b (diff)
downloadrockbox-839067b7b306e2da5142c3f31747205df8f9e4f5.tar.gz
rockbox-839067b7b306e2da5142c3f31747205df8f9e4f5.zip
More const policeing step 2
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4980 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/recorder')
-rw-r--r--apps/recorder/peakmeter.c4
-rw-r--r--apps/recorder/recording.c6
2 files changed, 5 insertions, 5 deletions
diff --git a/apps/recorder/peakmeter.c b/apps/recorder/peakmeter.c
index 33d1e25ee7..b069c1566b 100644
--- a/apps/recorder/peakmeter.c
+++ b/apps/recorder/peakmeter.c
@@ -103,14 +103,14 @@ static unsigned int ticks_per_redraw[TICKS_PER_DRAW_SIZE];
#endif
/* time out values for max */
-static long max_time_out[] = {
+static const long max_time_out[] = {
0 * HZ, HZ / 5, 30, HZ / 2, HZ, 2 * HZ,
3 * HZ, 4 * HZ, 5 * HZ, 6 * HZ, 7 * HZ, 8 * HZ,
9 * HZ, 10 * HZ, 15 * HZ, 20 * HZ, 30 * HZ, 60 * HZ
};
/* time out values for clip */
-static long clip_time_out[] = {
+static const long clip_time_out[] = {
0 * HZ, 1 * HZ, 2 * HZ, 3 * HZ, 4 * HZ, 5 * HZ,
6 * HZ, 7 * HZ, 8 * HZ, 9 * HZ, 10 * HZ, 15 * HZ,
20 * HZ, 25 * HZ, 30 * HZ, 45 * HZ, 60 * HZ, 90 * HZ,
diff --git a/apps/recorder/recording.c b/apps/recorder/recording.c
index 242351a0d6..20b5fa016f 100644
--- a/apps/recorder/recording.c
+++ b/apps/recorder/recording.c
@@ -56,7 +56,7 @@ bool f3_rec_screen(void);
#define SOURCE_LINE 1
#define SOURCE_SPDIF 2
-char *freq_str[6] =
+const char* const freq_str[6] =
{
"44.1kHz",
"48kHz",
@@ -79,7 +79,7 @@ static void set_gain(void)
}
}
-static char *fmtstr[] =
+static const char* const fmtstr[] =
{
"", /* no decimals */
"%d.%d %s ", /* 1 decimal */
@@ -632,7 +632,7 @@ bool f2_rec_screen(void)
lcd_getstringsize("A",&w,&h);
while (!exit) {
- char* ptr=NULL;
+ const char* ptr=NULL;
lcd_clear_display();