summaryrefslogtreecommitdiffstats
path: root/apps/plugins/sort.c
diff options
context:
space:
mode:
authorFrank Gevaerts <frank@gevaerts.be>2010-05-07 19:27:42 +0000
committerFrank Gevaerts <frank@gevaerts.be>2010-05-07 19:27:42 +0000
commit8d4ff638b9a79abcefe538eef8f1933c0c0decf9 (patch)
treec1071be69e9f794318e6b833e0cb00d0124e77c6 /apps/plugins/sort.c
parent6027b9160339bcc9efc80d76b095057e2524be8b (diff)
downloadrockbox-8d4ff638b9a79abcefe538eef8f1933c0c0decf9.tar.gz
rockbox-8d4ff638b9a79abcefe538eef8f1933c0c0decf9.tar.bz2
rockbox-8d4ff638b9a79abcefe538eef8f1933c0c0decf9.zip
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/sort.c')
-rw-r--r--apps/plugins/sort.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/plugins/sort.c b/apps/plugins/sort.c
index 05c45cce1e..1e787b33dd 100644
--- a/apps/plugins/sort.c
+++ b/apps/plugins/sort.c
@@ -59,7 +59,7 @@
PLUGIN_HEADER
-ssize_t buf_size;
+size_t buf_size;
static char *filename;
static int num_entries;
static char **pointers;
@@ -104,7 +104,7 @@ int read_buffer(int offset)
return readsize * 10 - 2;
/* Temporary fix until we can do merged sorting */
- if(readsize == buf_size)
+ if(readsize == (int)buf_size)
return buf_size; /* File too big */
buf_ptr = stringbuffer;
@@ -192,7 +192,7 @@ enum plugin_status plugin_start(const void* parameter)
filename = (char *)parameter;
- buf = rb->plugin_get_audio_buffer((size_t *)&buf_size); /* start munching memory */
+ buf = rb->plugin_get_audio_buffer(&buf_size); /* start munching memory */
stringbuffer = buf;
pointers = (char **)(buf + buf_size - sizeof(int));