summaryrefslogtreecommitdiffstats
path: root/apps/playlist_viewer.c
diff options
context:
space:
mode:
authorSteve Bavin <pondlife@pondlife.me>2008-05-12 17:52:50 +0000
committerSteve Bavin <pondlife@pondlife.me>2008-05-12 17:52:50 +0000
commitad95df2cabdee6f53ae16f1c24774bfc47add36f (patch)
treebb8851e30b36116a1e3c648114a6d40f38f0f29c /apps/playlist_viewer.c
parent8ea9b94cd95e39f96d3f5cac002ada826a7df5b0 (diff)
downloadrockbox-ad95df2cabdee6f53ae16f1c24774bfc47add36f.tar.gz
rockbox-ad95df2cabdee6f53ae16f1c24774bfc47add36f.tar.bz2
rockbox-ad95df2cabdee6f53ae16f1c24774bfc47add36f.zip
Const police raid.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17474 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/playlist_viewer.c')
-rw-r--r--apps/playlist_viewer.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/apps/playlist_viewer.c b/apps/playlist_viewer.c
index 8ad3d263de..b910ca449b 100644
--- a/apps/playlist_viewer.c
+++ b/apps/playlist_viewer.c
@@ -116,7 +116,7 @@ static struct playlist_entry * playlist_buffer_get_track(struct playlist_buffer
int index);
static bool playlist_viewer_init(struct playlist_viewer * viewer,
- char* filename, bool reload);
+ const char* filename, bool reload);
static void format_name(char* dest, const char* src);
static void format_line(const struct playlist_entry* track, char* str,
@@ -271,7 +271,7 @@ static struct playlist_entry * playlist_buffer_get_track(struct playlist_buffer
/* Initialize the playlist viewer. */
static bool playlist_viewer_init(struct playlist_viewer * viewer,
- char* filename, bool reload)
+ const char* filename, bool reload)
{
char* buffer;
size_t buffer_size;
@@ -304,7 +304,8 @@ static bool playlist_viewer_init(struct playlist_viewer * viewer,
else
{
/* Viewing playlist on disk */
- char *dir, *file, *temp_ptr;
+ const char *dir, *file;
+ char *temp_ptr;
char *index_buffer = NULL;
ssize_t index_buffer_size = 0;
@@ -591,7 +592,7 @@ static int playlist_callback_icons(int selected_item, void *data)
/* Main viewer function. Filename identifies playlist to be viewed. If NULL,
view current playlist. */
-bool playlist_viewer_ex(char* filename)
+bool playlist_viewer_ex(const char* filename)
{
bool ret = false; /* return value */
bool exit=false; /* exit viewer */