diff options
| author | Frank Gevaerts <frank@gevaerts.be> | 2010-05-07 19:27:42 +0000 |
|---|---|---|
| committer | Frank Gevaerts <frank@gevaerts.be> | 2010-05-07 19:27:42 +0000 |
| commit | 8d4ff638b9a79abcefe538eef8f1933c0c0decf9 (patch) | |
| tree | c1071be69e9f794318e6b833e0cb00d0124e77c6 /apps/plugins/dict.c | |
| parent | 6027b9160339bcc9efc80d76b095057e2524be8b (diff) | |
| download | rockbox-8d4ff638b9a79abcefe538eef8f1933c0c0decf9.zip rockbox-8d4ff638b9a79abcefe538eef8f1933c0c0decf9.tar.gz rockbox-8d4ff638b9a79abcefe538eef8f1933c0c0decf9.tar.bz2 rockbox-8d4ff638b9a79abcefe538eef8f1933c0c0decf9.tar.xz | |
Fix size_t handling in plugin_get_buffer()
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25884 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/dict.c')
| -rw-r--r-- | apps/plugins/dict.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/plugins/dict.c b/apps/plugins/dict.c index cdd4c65..8c26292 100644 --- a/apps/plugins/dict.c +++ b/apps/plugins/dict.c @@ -62,10 +62,10 @@ void init_screen(void) /* global vars for pl_malloc() */ void *bufptr; -ssize_t bufleft; +size_t bufleft; /* simple function to "allocate" memory in pluginbuffer. */ -void *pl_malloc(ssize_t size) +void *pl_malloc(size_t size) { void *ptr; ptr = bufptr; @@ -85,7 +85,7 @@ void *pl_malloc(ssize_t size) /* init function for pl_malloc() */ void pl_malloc_init(void) { - bufptr = rb->plugin_get_buffer((size_t *)&bufleft); + bufptr = rb->plugin_get_buffer(&bufleft); } /* for endian problems */ |