diff options
author | Jens Arnold <amiconn@rockbox.org> | 2009-09-12 08:00:52 +0000 |
---|---|---|
committer | Jens Arnold <amiconn@rockbox.org> | 2009-09-12 08:00:52 +0000 |
commit | ced32dfc48ea06c672d33aaa82a12b522efe51e1 (patch) | |
tree | 44c5e3b27897acf142e28a79879cf3e79e364b26 /apps | |
parent | 65fff8bdd86bcc7c6ff29a5fc727577dc6da367c (diff) | |
download | rockbox-ced32dfc48ea06c672d33aaa82a12b522efe51e1.tar.gz rockbox-ced32dfc48ea06c672d33aaa82a12b522efe51e1.zip |
Fix test_sampr for the changes in r22440
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22682 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r-- | apps/plugins/test_sampr.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/plugins/test_sampr.c b/apps/plugins/test_sampr.c index 45e1e7822b..1f6ee351e1 100644 --- a/apps/plugins/test_sampr.c +++ b/apps/plugins/test_sampr.c | |||
@@ -180,11 +180,13 @@ static void set_volume(int value) | |||
180 | rb->sound_set(SOUND_VOLUME, value); | 180 | rb->sound_set(SOUND_VOLUME, value); |
181 | } | 181 | } |
182 | 182 | ||
183 | static void format_volume(char *buf, size_t len, int value, const char *unit) | 183 | static const char *format_volume(char *buf, size_t len, int value, |
184 | const char *unit) | ||
184 | { | 185 | { |
186 | (void)unit; | ||
185 | rb->snprintf(buf, len, "%d %s", rb->sound_val2phys(SOUND_VOLUME, value), | 187 | rb->snprintf(buf, len, "%d %s", rb->sound_val2phys(SOUND_VOLUME, value), |
186 | rb->sound_unit(SOUND_VOLUME)); | 188 | rb->sound_unit(SOUND_VOLUME)); |
187 | (void)unit; | 189 | return buf; |
188 | } | 190 | } |
189 | #endif /* HAVE_VOLUME_IN_LIST */ | 191 | #endif /* HAVE_VOLUME_IN_LIST */ |
190 | 192 | ||