diff options
author | Thomas Martitz <kugel@rockbox.org> | 2010-05-06 21:17:14 +0000 |
---|---|---|
committer | Thomas Martitz <kugel@rockbox.org> | 2010-05-06 21:17:14 +0000 |
commit | 54548df56e36f870f0870a87dc6b9350836859bf (patch) | |
tree | 8cce8300347a2d0989dcf04a0d780972ad5373d4 | |
parent | 7210f69d81556b8e7ad43927a9da0e96960bfdee (diff) | |
download | rockbox-54548df56e36f870f0870a87dc6b9350836859bf.tar.gz rockbox-54548df56e36f870f0870a87dc6b9350836859bf.zip |
Fix some size_t related warnings (hopefully, they seem system dependant).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25852 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | apps/plugins/mpegplayer/alloc.c | 2 | ||||
-rw-r--r-- | apps/plugins/mpegplayer/disk_buf.c | 4 | ||||
-rw-r--r-- | apps/plugins/shortcuts/shortcuts_common.c | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/apps/plugins/mpegplayer/alloc.c b/apps/plugins/mpegplayer/alloc.c index da92f8754a..e5c79c4b0c 100644 --- a/apps/plugins/mpegplayer/alloc.c +++ b/apps/plugins/mpegplayer/alloc.c | |||
@@ -96,7 +96,7 @@ static void * mpeg_malloc_internal (unsigned char *mallocbuf, | |||
96 | { | 96 | { |
97 | void *x; | 97 | void *x; |
98 | 98 | ||
99 | DEBUGF("mpeg_alloc_internal: bs:%lu s:%u reason:%s (%d)\n", | 99 | DEBUGF("mpeg_alloc_internal: bs:%zu s:%u reason:%s (%d)\n", |
100 | bufsize, size, mpeg_get_reason_str(reason), reason); | 100 | bufsize, size, mpeg_get_reason_str(reason), reason); |
101 | 101 | ||
102 | if ((size_t) (*mem_ptr + size) > bufsize) | 102 | if ((size_t) (*mem_ptr + size) > bufsize) |
diff --git a/apps/plugins/mpegplayer/disk_buf.c b/apps/plugins/mpegplayer/disk_buf.c index 59d4816fb4..398c205fc6 100644 --- a/apps/plugins/mpegplayer/disk_buf.c +++ b/apps/plugins/mpegplayer/disk_buf.c | |||
@@ -710,12 +710,12 @@ ssize_t disk_buf_prepare_streaming(off_t pos, size_t len) | |||
710 | else if (pos > disk_buf.filesize) | 710 | else if (pos > disk_buf.filesize) |
711 | pos = disk_buf.filesize; | 711 | pos = disk_buf.filesize; |
712 | 712 | ||
713 | DEBUGF("prepare streaming:\n pos:%ld len:%lu\n", pos, len); | 713 | DEBUGF("prepare streaming:\n pos:%ld len:%zu\n", pos, len); |
714 | 714 | ||
715 | pos = disk_buf_lseek(pos, SEEK_SET); | 715 | pos = disk_buf_lseek(pos, SEEK_SET); |
716 | disk_buf_probe(pos, len, NULL, &len); | 716 | disk_buf_probe(pos, len, NULL, &len); |
717 | 717 | ||
718 | DEBUGF(" probe done: pos:%ld len:%lu\n", pos, len); | 718 | DEBUGF(" probe done: pos:%ld len:%zu\n", pos, len); |
719 | 719 | ||
720 | len = disk_buf_send_msg(STREAM_RESET, pos); | 720 | len = disk_buf_send_msg(STREAM_RESET, pos); |
721 | 721 | ||
diff --git a/apps/plugins/shortcuts/shortcuts_common.c b/apps/plugins/shortcuts/shortcuts_common.c index da212a55a3..0eb8c47e7d 100644 --- a/apps/plugins/shortcuts/shortcuts_common.c +++ b/apps/plugins/shortcuts/shortcuts_common.c | |||
@@ -54,7 +54,7 @@ void write_int_instruction_to_file(int fd, char *instr, int value); | |||
54 | void allocate_memory(void **buf, size_t *bufsize) | 54 | void allocate_memory(void **buf, size_t *bufsize) |
55 | { | 55 | { |
56 | *buf = rb->plugin_get_buffer(bufsize); | 56 | *buf = rb->plugin_get_buffer(bufsize); |
57 | DEBUGF("Got %ld bytes of memory\n", *bufsize); | 57 | DEBUGF("Got %zud bytes of memory\n", *bufsize); |
58 | } | 58 | } |
59 | 59 | ||
60 | 60 | ||