diff options
Diffstat (limited to 'apps/plugins/viewer.c')
-rw-r--r-- | apps/plugins/viewer.c | 6 |
1 files changed, 3 insertions, 3 deletions
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 */ | |||
357 | static int draw_columns; /* number of (pixel) columns available for text */ | 357 | static int draw_columns; /* number of (pixel) columns available for text */ |
358 | static int par_indent_spaces; /* number of spaces to indent first paragraph */ | 358 | static int par_indent_spaces; /* number of spaces to indent first paragraph */ |
359 | static int fd; | 359 | static int fd; |
360 | static char *file_name; | 360 | static const char *file_name; |
361 | static long file_size; | 361 | static long file_size; |
362 | static long start_position; /* position in the file after the viewer is started */ | 362 | static long start_position; /* position in the file after the viewer is started */ |
363 | static bool mac_text; | 363 | static bool mac_text; |
@@ -368,7 +368,7 @@ static unsigned char *screen_top_ptr; | |||
368 | static unsigned char *next_screen_ptr; | 368 | static unsigned char *next_screen_ptr; |
369 | static unsigned char *next_screen_to_draw_ptr; | 369 | static unsigned char *next_screen_to_draw_ptr; |
370 | static unsigned char *next_line_ptr; | 370 | static unsigned char *next_line_ptr; |
371 | static struct plugin_api* rb; | 371 | static const struct plugin_api* rb; |
372 | #ifdef HAVE_LCD_BITMAP | 372 | #ifdef HAVE_LCD_BITMAP |
373 | static struct font *pf; | 373 | static struct font *pf; |
374 | #endif | 374 | #endif |
@@ -1457,7 +1457,7 @@ static void viewer_menu(void) | |||
1457 | viewer_draw(col); | 1457 | viewer_draw(col); |
1458 | } | 1458 | } |
1459 | 1459 | ||
1460 | enum plugin_status plugin_start(struct plugin_api* api, void* file) | 1460 | enum plugin_status plugin_start(const struct plugin_api* api, const void* file) |
1461 | { | 1461 | { |
1462 | int button, i, ok; | 1462 | int button, i, ok; |
1463 | int lastbutton = BUTTON_NONE; | 1463 | int lastbutton = BUTTON_NONE; |