diff options
| author | Michael Sevakis <jethead71@rockbox.org> | 2007-04-21 19:20:20 +0000 |
|---|---|---|
| committer | Michael Sevakis <jethead71@rockbox.org> | 2007-04-21 19:20:20 +0000 |
| commit | eb85f14f9549b328cdd76c93ecdf6862a5d0b341 (patch) | |
| tree | 3ac27481113086dd8da91a7494c8a151c69c54e4 /apps | |
| parent | 8676dc25f53ec5ae183f514433103b407fdf322b (diff) | |
| download | rockbox-eb85f14f9549b328cdd76c93ecdf6862a5d0b341.zip rockbox-eb85f14f9549b328cdd76c93ecdf6862a5d0b341.tar.gz rockbox-eb85f14f9549b328cdd76c93ecdf6862a5d0b341.tar.bz2 rockbox-eb85f14f9549b328cdd76c93ecdf6862a5d0b341.tar.xz | |
No more type punning where it's not funny.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13235 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
| -rw-r--r-- | apps/onplay.c | 5 | ||||
| -rw-r--r-- | apps/playlist_viewer.c | 4 |
2 files changed, 5 insertions, 4 deletions
diff --git a/apps/onplay.c b/apps/onplay.c index c10d110..6314bd9 100644 --- a/apps/onplay.c +++ b/apps/onplay.c @@ -598,13 +598,14 @@ static bool clipboard_copy(void) static bool clipboard_pastefile(const char *src, const char *target, bool copy) { int src_fd, target_fd; - ssize_t buffersize, size, bytesread, byteswritten; + size_t buffersize; + ssize_t size, bytesread, byteswritten; char *buffer; bool result = false; if (copy) { /* See if we can get the plugin buffer for the file copy buffer */ - buffer = (char *) plugin_get_buffer((size_t *)&buffersize); + buffer = (char *) plugin_get_buffer(&buffersize); if (buffer == NULL || buffersize < 512) { /* Not large enough, try for a disk sector worth of stack instead */ buffersize = 512; diff --git a/apps/playlist_viewer.c b/apps/playlist_viewer.c index 25a78e7..1d066bb 100644 --- a/apps/playlist_viewer.c +++ b/apps/playlist_viewer.c @@ -276,14 +276,14 @@ static bool playlist_viewer_init(struct playlist_viewer * viewer, char* filename, bool reload) { char* buffer; - ssize_t buffer_size; + size_t buffer_size; bool is_playing = audio_status() & AUDIO_STATUS_PLAY; if (!filename && !is_playing) /* Nothing is playing, exit */ return false; - buffer = plugin_get_buffer((size_t *)&buffer_size); + buffer = plugin_get_buffer(&buffer_size); if (!buffer) return false; |