mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-14 23:52:26 -05:00
No more type punning where it's not funny.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13235 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
8676dc25f5
commit
eb85f14f95
2 changed files with 5 additions and 4 deletions
|
|
@ -598,13 +598,14 @@ static bool clipboard_copy(void)
|
||||||
static bool clipboard_pastefile(const char *src, const char *target, bool copy)
|
static bool clipboard_pastefile(const char *src, const char *target, bool copy)
|
||||||
{
|
{
|
||||||
int src_fd, target_fd;
|
int src_fd, target_fd;
|
||||||
ssize_t buffersize, size, bytesread, byteswritten;
|
size_t buffersize;
|
||||||
|
ssize_t size, bytesread, byteswritten;
|
||||||
char *buffer;
|
char *buffer;
|
||||||
bool result = false;
|
bool result = false;
|
||||||
|
|
||||||
if (copy) {
|
if (copy) {
|
||||||
/* See if we can get the plugin buffer for the file copy buffer */
|
/* 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) {
|
if (buffer == NULL || buffersize < 512) {
|
||||||
/* Not large enough, try for a disk sector worth of stack instead */
|
/* Not large enough, try for a disk sector worth of stack instead */
|
||||||
buffersize = 512;
|
buffersize = 512;
|
||||||
|
|
|
||||||
|
|
@ -276,14 +276,14 @@ static bool playlist_viewer_init(struct playlist_viewer * viewer,
|
||||||
char* filename, bool reload)
|
char* filename, bool reload)
|
||||||
{
|
{
|
||||||
char* buffer;
|
char* buffer;
|
||||||
ssize_t buffer_size;
|
size_t buffer_size;
|
||||||
bool is_playing = audio_status() & AUDIO_STATUS_PLAY;
|
bool is_playing = audio_status() & AUDIO_STATUS_PLAY;
|
||||||
|
|
||||||
if (!filename && !is_playing)
|
if (!filename && !is_playing)
|
||||||
/* Nothing is playing, exit */
|
/* Nothing is playing, exit */
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
buffer = plugin_get_buffer((size_t *)&buffer_size);
|
buffer = plugin_get_buffer(&buffer_size);
|
||||||
if (!buffer)
|
if (!buffer)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue