diff options
author | Steve Bavin <pondlife@pondlife.me> | 2008-05-13 09:57:56 +0000 |
---|---|---|
committer | Steve Bavin <pondlife@pondlife.me> | 2008-05-13 09:57:56 +0000 |
commit | 652657781805d9cc10d744a49fb23eb17019fbbf (patch) | |
tree | 2d1a6ae597a17531f726b57fd9f8cbaa2a46a07f /apps/plugins/vbrfix.c | |
parent | a94e40d5153ab698fa8a1b6b57d91fcb6acc905e (diff) | |
download | rockbox-652657781805d9cc10d744a49fb23eb17019fbbf.tar.gz rockbox-652657781805d9cc10d744a49fb23eb17019fbbf.zip |
Plugin parameters should be const.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17492 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/vbrfix.c')
-rw-r--r-- | apps/plugins/vbrfix.c | 8 |
1 files changed, 4 insertions, 4 deletions
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 @@ | |||
20 | 20 | ||
21 | PLUGIN_HEADER | 21 | PLUGIN_HEADER |
22 | 22 | ||
23 | static struct plugin_api* rb; | 23 | static const struct plugin_api* rb; |
24 | 24 | ||
25 | static char *audiobuf; | 25 | static char *audiobuf; |
26 | static ssize_t audiobuflen; | 26 | static ssize_t audiobuflen; |
@@ -36,7 +36,7 @@ static void xingupdate(int percent) | |||
36 | rb->lcd_update(); | 36 | rb->lcd_update(); |
37 | } | 37 | } |
38 | 38 | ||
39 | static int insert_data_in_file(char *fname, int fpos, char *buf, int num_bytes) | 39 | static int insert_data_in_file(const char *fname, int fpos, char *buf, int num_bytes) |
40 | { | 40 | { |
41 | int readlen; | 41 | int readlen; |
42 | int rc; | 42 | int rc; |
@@ -126,7 +126,7 @@ static const unsigned char empty_id3_header[] = | |||
126 | 0x00, 0x00, 0x1f, 0x76 /* Size is 4096 minus 10 bytes for the header */ | 126 | 0x00, 0x00, 0x1f, 0x76 /* Size is 4096 minus 10 bytes for the header */ |
127 | }; | 127 | }; |
128 | 128 | ||
129 | static bool vbr_fix(char *selected_file) | 129 | static bool vbr_fix(const char *selected_file) |
130 | { | 130 | { |
131 | struct mp3entry entry; | 131 | struct mp3entry entry; |
132 | int fd; | 132 | int fd; |
@@ -261,7 +261,7 @@ static bool vbr_fix(char *selected_file) | |||
261 | return false; | 261 | return false; |
262 | } | 262 | } |
263 | 263 | ||
264 | enum plugin_status plugin_start(struct plugin_api* api, void *parameter) | 264 | enum plugin_status plugin_start(const struct plugin_api* api, const void *parameter) |
265 | { | 265 | { |
266 | rb = api; | 266 | rb = api; |
267 | 267 | ||