diff options
Diffstat (limited to 'apps/plugins/reversi')
-rw-r--r-- | apps/plugins/reversi/reversi-game.h | 2 | ||||
-rw-r--r-- | apps/plugins/reversi/reversi-gui.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/apps/plugins/reversi/reversi-game.h b/apps/plugins/reversi/reversi-game.h index de05df78f9..9558f000bf 100644 --- a/apps/plugins/reversi/reversi-game.h +++ b/apps/plugins/reversi/reversi-game.h | |||
@@ -58,7 +58,7 @@ typedef struct _reversi_board_t { | |||
58 | */ | 58 | */ |
59 | move_t history[BOARD_SIZE*BOARD_SIZE - INIT_STONES]; | 59 | move_t history[BOARD_SIZE*BOARD_SIZE - INIT_STONES]; |
60 | 60 | ||
61 | struct plugin_api *rb; | 61 | const struct plugin_api *rb; |
62 | } reversi_board_t; | 62 | } reversi_board_t; |
63 | 63 | ||
64 | 64 | ||
diff --git a/apps/plugins/reversi/reversi-gui.c b/apps/plugins/reversi/reversi-gui.c index 1995923f4f..a7e695529b 100644 --- a/apps/plugins/reversi/reversi-gui.c +++ b/apps/plugins/reversi/reversi-gui.c | |||
@@ -52,7 +52,7 @@ PLUGIN_HEADER | |||
52 | /* The global api struct pointer. While not strictly necessary, | 52 | /* The global api struct pointer. While not strictly necessary, |
53 | it's nice not to have to pass the api pointer in all function | 53 | it's nice not to have to pass the api pointer in all function |
54 | calls in the plugin */ | 54 | calls in the plugin */ |
55 | static struct plugin_api* rb; | 55 | static const struct plugin_api* rb; |
56 | 56 | ||
57 | /* Thickness of the grid lines */ | 57 | /* Thickness of the grid lines */ |
58 | #define LINE_THCK 1 | 58 | #define LINE_THCK 1 |
@@ -543,7 +543,7 @@ static void reversi_gui_move_cursor(int new_row, int new_col) { | |||
543 | 543 | ||
544 | 544 | ||
545 | /* plugin entry point */ | 545 | /* plugin entry point */ |
546 | enum plugin_status plugin_start(struct plugin_api *api, void *parameter) { | 546 | enum plugin_status plugin_start(const struct plugin_api *api, const void *parameter) { |
547 | bool exit, draw_screen; | 547 | bool exit, draw_screen; |
548 | int button; | 548 | int button; |
549 | int lastbutton = BUTTON_NONE; | 549 | int lastbutton = BUTTON_NONE; |