From 652657781805d9cc10d744a49fb23eb17019fbbf Mon Sep 17 00:00:00 2001 From: Steve Bavin Date: Tue, 13 May 2008 09:57:56 +0000 Subject: Plugin parameters should be const. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17492 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/vbrfix.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'apps/plugins/vbrfix.c') diff --git a/apps/plugins/vbrfix.c b/apps/plugins/vbrfix.c index 665a2aae5e..85a61cbfc3 100644 --- a/apps/plugins/vbrfix.c +++ b/apps/plugins/vbrfix.c @@ -20,7 +20,7 @@ PLUGIN_HEADER -static struct plugin_api* rb; +static const struct plugin_api* rb; static char *audiobuf; static ssize_t audiobuflen; @@ -36,7 +36,7 @@ static void xingupdate(int percent) rb->lcd_update(); } -static int insert_data_in_file(char *fname, int fpos, char *buf, int num_bytes) +static int insert_data_in_file(const char *fname, int fpos, char *buf, int num_bytes) { int readlen; int rc; @@ -126,7 +126,7 @@ static const unsigned char empty_id3_header[] = 0x00, 0x00, 0x1f, 0x76 /* Size is 4096 minus 10 bytes for the header */ }; -static bool vbr_fix(char *selected_file) +static bool vbr_fix(const char *selected_file) { struct mp3entry entry; int fd; @@ -261,7 +261,7 @@ static bool vbr_fix(char *selected_file) return false; } -enum plugin_status plugin_start(struct plugin_api* api, void *parameter) +enum plugin_status plugin_start(const struct plugin_api* api, const void *parameter) { rb = api; -- cgit v1.2.3