mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-14 02:27:39 -04:00
fix red
Change-Id: Ib28cfd9037901c7b8bc9b2960ad2c1c9a1e25a69
This commit is contained in:
parent
6416d96fbc
commit
7ea37bb806
3 changed files with 9 additions and 10 deletions
|
@ -83,8 +83,6 @@ _FILE_ *_fopen_(const char *path, const char *mode)
|
|||
|
||||
if (fd < 0)
|
||||
{
|
||||
//extern int errno;
|
||||
//rb->splashf(HZ*2, "open of %s failed (%d)", path, errno);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
@ -122,11 +120,12 @@ size_t _fwrite_(const void *ptr, size_t size, size_t nmemb, _FILE_ *stream)
|
|||
|
||||
return ret / size;
|
||||
}
|
||||
#if 1
|
||||
#if 0
|
||||
/* stderr, stdout (disabled) */
|
||||
else
|
||||
{
|
||||
char buf[10];
|
||||
rb->snprintf(buf, 10, "%%%ds", size*nmemb);
|
||||
rb->snprintf(buf, 10, "%%%ds", (int)(size*nmemb));
|
||||
rb->splashf(HZ, buf, ptr);
|
||||
return size * nmemb;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue