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/text_editor.c | |
| parent | a94e40d5153ab698fa8a1b6b57d91fcb6acc905e (diff) | |
| download | rockbox-652657781805d9cc10d744a49fb23eb17019fbbf.zip rockbox-652657781805d9cc10d744a49fb23eb17019fbbf.tar.gz rockbox-652657781805d9cc10d744a49fb23eb17019fbbf.tar.bz2 rockbox-652657781805d9cc10d744a49fb23eb17019fbbf.tar.xz | |
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/text_editor.c')
| -rw-r--r-- | apps/plugins/text_editor.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/plugins/text_editor.c b/apps/plugins/text_editor.c index 617155f..0edde54 100644 --- a/apps/plugins/text_editor.c +++ b/apps/plugins/text_editor.c @@ -26,7 +26,7 @@ #endif #define MAX_LINE_LEN 2048 PLUGIN_HEADER -static struct plugin_api* rb; +static const struct plugin_api* rb; static char buffer[MAX_CHARS]; static char eol[3]; @@ -118,8 +118,8 @@ int _do_action(int action, char* str, int line) char *list_get_name_cb(int selected_item, void* data, char* buf, size_t buf_len) { - char *b = &buffer[do_action(ACTION_GET,0,selected_item)]; (void)data; + char *b = &buffer[do_action(ACTION_GET,0,selected_item)]; if (rb->strlen(b) >= buf_len) { char t = b[buf_len-10]; @@ -306,7 +306,7 @@ int hex_to_rgb(const char* hex, int* color) #endif /* HAVE_LCD_COLOR */ /* this is the plugin entry point */ -enum plugin_status plugin_start(struct plugin_api* api, void* parameter) +enum plugin_status plugin_start(const struct plugin_api* api, const void* parameter) { int fd; static char temp_line[MAX_LINE_LEN]; |