From 74f941e75c6efaf3874766ada1eb0b2d61e7b139 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Tue, 15 Feb 2005 09:27:23 +0000 Subject: [PATCH] C89 fix: variables first then code git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5945 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/logo.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/apps/plugins/logo.c b/apps/plugins/logo.c index b804264b45..50e9c02d68 100644 --- a/apps/plugins/logo.c +++ b/apps/plugins/logo.c @@ -122,11 +122,15 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter) { int x = (LCD_WIDTH / 2) - (WIDTH / 2); int y = (LCD_HEIGHT / 2) - (HEIGHT / 2); struct plugin_api* rb = api; + int dx; + int dy; + TEST_PLUGIN_API(api); (void)parameter; rb->srand(*rb->current_tick); - int dx = rb->rand()%11 - 5; - int dy = rb->rand()%11 - 5; + + dx = rb->rand()%11 - 5; + dy = rb->rand()%11 - 5; while (1) { rb->lcd_clear_display();