diff options
Diffstat (limited to 'apps/plugins/chessclock.c')
-rw-r--r-- | apps/plugins/chessclock.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/apps/plugins/chessclock.c b/apps/plugins/chessclock.c index 86bcce01db..f8c7a2c64e 100644 --- a/apps/plugins/chessclock.c +++ b/apps/plugins/chessclock.c | |||
@@ -247,11 +247,7 @@ PLUGIN_HEADER | |||
247 | #define FIRST_LINE 0 | 247 | #define FIRST_LINE 0 |
248 | #endif | 248 | #endif |
249 | 249 | ||
250 | /* here is a global api struct pointer. while not strictly necessary, | 250 | MEM_FUNCTION_WRAPPERS; |
251 | it's nice not to have to pass the api pointer in all function calls | ||
252 | in the plugin */ | ||
253 | static const struct plugin_api* rb; | ||
254 | MEM_FUNCTION_WRAPPERS(rb); | ||
255 | #define MAX_PLAYERS 10 | 251 | #define MAX_PLAYERS 10 |
256 | 252 | ||
257 | static struct { | 253 | static struct { |
@@ -283,14 +279,13 @@ static bool pause; | |||
283 | #define MAX_TIME 7200 | 279 | #define MAX_TIME 7200 |
284 | 280 | ||
285 | /* this is the plugin entry point */ | 281 | /* this is the plugin entry point */ |
286 | enum plugin_status plugin_start(const struct plugin_api* api, const void* parameter) | 282 | enum plugin_status plugin_start(const void* parameter) |
287 | { | 283 | { |
288 | int i; | 284 | int i; |
289 | bool done; | 285 | bool done; |
290 | int nr; | 286 | int nr; |
291 | 287 | ||
292 | (void)parameter; | 288 | (void)parameter; |
293 | rb=api; | ||
294 | rb->memset(&settings, 0, sizeof(settings)); | 289 | rb->memset(&settings, 0, sizeof(settings)); |
295 | 290 | ||
296 | /* now go ahead and have fun! */ | 291 | /* now go ahead and have fun! */ |