From 652657781805d9cc10d744a49fb23eb17019fbbf Mon Sep 17 00:00:00 2001 From: Steve Bavin Date: Tue, 13 May 2008 09:57:56 +0000 Subject: Plugin parameters should be const. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17492 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/greyscale.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'apps/plugins/greyscale.c') diff --git a/apps/plugins/greyscale.c b/apps/plugins/greyscale.c index 17449b9f62..cffa8f1940 100644 --- a/apps/plugins/greyscale.c +++ b/apps/plugins/greyscale.c @@ -102,7 +102,7 @@ PLUGIN_HEADER /******************************* Globals ***********************************/ GREY_INFO_STRUCT -static struct plugin_api* rb; /* global api struct pointer */ +static const struct plugin_api* rb; /* global api struct pointer */ static char pbuf[32]; /* global printf buffer */ static unsigned char *gbuf; static size_t gbuf_size = 0; @@ -361,7 +361,7 @@ int main(void) /*************************** Plugin entry point ****************************/ -enum plugin_status plugin_start(struct plugin_api* api, void* parameter) +enum plugin_status plugin_start(const struct plugin_api* api, const void* parameter) { rb = api; /* copy to global api pointer */ (void)parameter; -- cgit