From 8d4ff638b9a79abcefe538eef8f1933c0c0decf9 Mon Sep 17 00:00:00 2001 From: Frank Gevaerts Date: Fri, 7 May 2010 19:27:42 +0000 Subject: Fix size_t handling in plugin_get_buffer() git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25884 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/snake2.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'apps/plugins/snake2.c') diff --git a/apps/plugins/snake2.c b/apps/plugins/snake2.c index d9b6542..414d924 100644 --- a/apps/plugins/snake2.c +++ b/apps/plugins/snake2.c @@ -409,13 +409,13 @@ int load_all_levels(void) { int linecnt = 0; int fd; - ssize_t size; + size_t size; char buf[64]; /* Larger than WIDTH, to allow for whitespace after the lines */ /* Init the level_cache pointer and calculate how many levels that will fit */ - level_cache = rb->plugin_get_buffer((size_t *)&size); + level_cache = rb->plugin_get_buffer(&size); max_levels = size / (HEIGHT*WIDTH); num_levels = 0; -- cgit v1.1