diff options
Diffstat (limited to 'apps/plugins/sudoku')
-rw-r--r-- | apps/plugins/sudoku/generator.c | 2 | ||||
-rw-r--r-- | apps/plugins/sudoku/sudoku.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/apps/plugins/sudoku/generator.c b/apps/plugins/sudoku/generator.c index eaef8c0f17..56dce48cc2 100644 --- a/apps/plugins/sudoku/generator.c +++ b/apps/plugins/sudoku/generator.c | |||
@@ -35,7 +35,7 @@ | |||
35 | #include "sudoku.h" | 35 | #include "sudoku.h" |
36 | #include "templates.h" | 36 | #include "templates.h" |
37 | 37 | ||
38 | extern struct plugin_api* rb; | 38 | extern const struct plugin_api* rb; |
39 | 39 | ||
40 | #define assert(x) | 40 | #define assert(x) |
41 | 41 | ||
diff --git a/apps/plugins/sudoku/sudoku.c b/apps/plugins/sudoku/sudoku.c index d76b68ef27..64a6c8d7c9 100644 --- a/apps/plugins/sudoku/sudoku.c +++ b/apps/plugins/sudoku/sudoku.c | |||
@@ -80,7 +80,7 @@ PLUGIN_HEADER | |||
80 | it's nice not to have to pass the api pointer in all function calls | 80 | it's nice not to have to pass the api pointer in all function calls |
81 | in the plugin */ | 81 | in the plugin */ |
82 | 82 | ||
83 | struct plugin_api* rb; | 83 | const struct plugin_api* rb; |
84 | 84 | ||
85 | /* Default game - used to initialise sudoku.ss if it doesn't exist. */ | 85 | /* Default game - used to initialise sudoku.ss if it doesn't exist. */ |
86 | static const char default_game[9][9] = | 86 | static const char default_game[9][9] = |
@@ -1188,7 +1188,7 @@ void move_cursor(struct sudoku_state_t* state, int newx, int newy) | |||
1188 | } | 1188 | } |
1189 | 1189 | ||
1190 | /* plugin entry point */ | 1190 | /* plugin entry point */ |
1191 | enum plugin_status plugin_start(struct plugin_api* api, void* parameter) | 1191 | enum plugin_status plugin_start(const struct plugin_api* api, const void* parameter) |
1192 | { | 1192 | { |
1193 | bool exit; | 1193 | bool exit; |
1194 | int button; | 1194 | int button; |