summaryrefslogtreecommitdiff
path: root/apps/plugins/lib/stdio_compat.c
diff options
context:
space:
mode:
authorFranklin Wei <git@fwei.tk>2017-12-24 12:58:33 -0500
committerFranklin Wei <git@fwei.tk>2017-12-24 12:58:33 -0500
commit7ea37bb806a6faeb4e8f9b115f256735f089b169 (patch)
tree9acdddadc58d2c92146a44485eb9a9f4de24f809 /apps/plugins/lib/stdio_compat.c
parent6416d96fbc6946a0eee8ba29bb881fbf4dcbe607 (diff)
fix red
Change-Id: Ib28cfd9037901c7b8bc9b2960ad2c1c9a1e25a69
Diffstat (limited to 'apps/plugins/lib/stdio_compat.c')
-rw-r--r--apps/plugins/lib/stdio_compat.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/apps/plugins/lib/stdio_compat.c b/apps/plugins/lib/stdio_compat.c
index 957dd0ddc1..c1d5a7bc77 100644
--- a/apps/plugins/lib/stdio_compat.c
+++ b/apps/plugins/lib/stdio_compat.c
@@ -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;
}