From 6aac251ab9aa47528bea0bde87526ab66c22d37e Mon Sep 17 00:00:00 2001 From: amiconn Date: Sat, 12 Sep 2009 08:00:52 +0000 Subject: [PATCH] Fix test_sampr for the changes in r22440 git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22682 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/test_sampr.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/apps/plugins/test_sampr.c b/apps/plugins/test_sampr.c index 45e1e7822..1f6ee351e 100644 --- a/apps/plugins/test_sampr.c +++ b/apps/plugins/test_sampr.c @@ -180,11 +180,13 @@ static void set_volume(int value) rb->sound_set(SOUND_VOLUME, value); } -static void format_volume(char *buf, size_t len, int value, const char *unit) +static const char *format_volume(char *buf, size_t len, int value, + const char *unit) { + (void)unit; rb->snprintf(buf, len, "%d %s", rb->sound_val2phys(SOUND_VOLUME, value), rb->sound_unit(SOUND_VOLUME)); - (void)unit; + return buf; } #endif /* HAVE_VOLUME_IN_LIST */ -- 2.11.4.GIT