summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2007-04-21 19:20:20 +0000
committerMichael Sevakis <jethead71@rockbox.org>2007-04-21 19:20:20 +0000
commiteb85f14f9549b328cdd76c93ecdf6862a5d0b341 (patch)
tree3ac27481113086dd8da91a7494c8a151c69c54e4
parent8676dc25f53ec5ae183f514433103b407fdf322b (diff)
downloadrockbox-eb85f14f9549b328cdd76c93ecdf6862a5d0b341.tar.gz
rockbox-eb85f14f9549b328cdd76c93ecdf6862a5d0b341.zip
No more type punning where it's not funny.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13235 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/onplay.c5
-rw-r--r--apps/playlist_viewer.c4
2 files changed, 5 insertions, 4 deletions
diff --git a/apps/onplay.c b/apps/onplay.c
index c10d110350..6314bd932c 100644
--- a/apps/onplay.c
+++ b/apps/onplay.c
@@ -598,13 +598,14 @@ static bool clipboard_copy(void)
598static bool clipboard_pastefile(const char *src, const char *target, bool copy) 598static bool clipboard_pastefile(const char *src, const char *target, bool copy)
599{ 599{
600 int src_fd, target_fd; 600 int src_fd, target_fd;
601 ssize_t buffersize, size, bytesread, byteswritten; 601 size_t buffersize;
602 ssize_t size, bytesread, byteswritten;
602 char *buffer; 603 char *buffer;
603 bool result = false; 604 bool result = false;
604 605
605 if (copy) { 606 if (copy) {
606 /* See if we can get the plugin buffer for the file copy buffer */ 607 /* See if we can get the plugin buffer for the file copy buffer */
607 buffer = (char *) plugin_get_buffer((size_t *)&buffersize); 608 buffer = (char *) plugin_get_buffer(&buffersize);
608 if (buffer == NULL || buffersize < 512) { 609 if (buffer == NULL || buffersize < 512) {
609 /* Not large enough, try for a disk sector worth of stack instead */ 610 /* Not large enough, try for a disk sector worth of stack instead */
610 buffersize = 512; 611 buffersize = 512;
diff --git a/apps/playlist_viewer.c b/apps/playlist_viewer.c
index 25a78e750a..1d066bbedb 100644
--- a/apps/playlist_viewer.c
+++ b/apps/playlist_viewer.c
@@ -276,14 +276,14 @@ static bool playlist_viewer_init(struct playlist_viewer * viewer,
276 char* filename, bool reload) 276 char* filename, bool reload)
277{ 277{
278 char* buffer; 278 char* buffer;
279 ssize_t buffer_size; 279 size_t buffer_size;
280 bool is_playing = audio_status() & AUDIO_STATUS_PLAY; 280 bool is_playing = audio_status() & AUDIO_STATUS_PLAY;
281 281
282 if (!filename && !is_playing) 282 if (!filename && !is_playing)
283 /* Nothing is playing, exit */ 283 /* Nothing is playing, exit */
284 return false; 284 return false;
285 285
286 buffer = plugin_get_buffer((size_t *)&buffer_size); 286 buffer = plugin_get_buffer(&buffer_size);
287 if (!buffer) 287 if (!buffer)
288 return false; 288 return false;
289 289