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/viewer.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'apps/plugins/viewer.c') diff --git a/apps/plugins/viewer.c b/apps/plugins/viewer.c index 885ac70bea..cd0d3694ba 100644 --- a/apps/plugins/viewer.c +++ b/apps/plugins/viewer.c @@ -357,7 +357,7 @@ static int display_lines; /* number of lines on the display */ static int draw_columns; /* number of (pixel) columns available for text */ static int par_indent_spaces; /* number of spaces to indent first paragraph */ static int fd; -static char *file_name; +static const char *file_name; static long file_size; static long start_position; /* position in the file after the viewer is started */ static bool mac_text; @@ -368,7 +368,7 @@ static unsigned char *screen_top_ptr; static unsigned char *next_screen_ptr; static unsigned char *next_screen_to_draw_ptr; static unsigned char *next_line_ptr; -static struct plugin_api* rb; +static const struct plugin_api* rb; #ifdef HAVE_LCD_BITMAP static struct font *pf; #endif @@ -1457,7 +1457,7 @@ static void viewer_menu(void) viewer_draw(col); } -enum plugin_status plugin_start(struct plugin_api* api, void* file) +enum plugin_status plugin_start(const struct plugin_api* api, const void* file) { int button, i, ok; int lastbutton = BUTTON_NONE; -- cgit v1.2.3