diff options
author | Steven Schubiger <stsc@refcnt.org> | 2015-06-07 14:32:01 +0200 |
---|---|---|
committer | Steven Schubiger <stsc@refcnt.org> | 2015-06-07 14:32:01 +0200 |
commit | 85e7ff2cdccb0e16ef15aad7bb4fa469f82a8410 (patch) | |
tree | c45200137b04887d189efd3c816a4bffd6a21459 | |
parent | 2a4bb27b1d51c9d63f53cbdd44ee2a92b8012e94 (diff) | |
download | colorize-85e7ff2cdccb0e16ef15aad7bb4fa469f82a8410.tar.gz colorize-85e7ff2cdccb0e16ef15aad7bb4fa469f82a8410.tar.bz2 |
Cast variable properly
-rw-r--r-- | colorize.c | 18 |
1 files changed, 9 insertions, 9 deletions
@@ -165,14 +165,14 @@ enum fmts { FMT_TYPE }; static const char *formats[] = { - "%s", /* generic */ - "%s '%s'", /* string */ - "%s `%s' %s", /* quote */ - "%s color '%s' %s", /* color */ - "%s color '%s' %s '%s'", /* random */ - "less than %u bytes %s", /* error */ - "%s: %s", /* file */ - "%s: %s: %s", /* type */ + "%s", /* generic */ + "%s '%s'", /* string */ + "%s `%s' %s", /* quote */ + "%s color '%s' %s", /* color */ + "%s color '%s' %s '%s'", /* random */ + "less than %lu bytes %s", /* error */ + "%s: %s", /* file */ + "%s: %s: %s", /* type */ }; enum { FOREGROUND, BACKGROUND }; @@ -916,7 +916,7 @@ print_text (const char *p, size_t len) size_t bytes_written; bytes_written = fwrite (p, 1, len, stdout); if (bytes_written != len) - vfprintf_fail (formats[FMT_ERROR], len, "written"); + vfprintf_fail (formats[FMT_ERROR], (unsigned long)len, "written"); } static bool |