diff options
author | Franklin Wei <git@fwei.tk> | 2017-12-24 12:58:33 -0500 |
---|---|---|
committer | Franklin Wei <git@fwei.tk> | 2017-12-24 12:58:33 -0500 |
commit | 7ea37bb806a6faeb4e8f9b115f256735f089b169 (patch) | |
tree | 9acdddadc58d2c92146a44485eb9a9f4de24f809 /apps/plugins/lib/stdio_compat.c | |
parent | 6416d96fbc6946a0eee8ba29bb881fbf4dcbe607 (diff) |
fix red
Change-Id: Ib28cfd9037901c7b8bc9b2960ad2c1c9a1e25a69
Diffstat (limited to 'apps/plugins/lib/stdio_compat.c')
-rw-r--r-- | apps/plugins/lib/stdio_compat.c | 7 |
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; } |