diff options
author | Eliseo Martínez <eliseomarmol@gmail.com> | 2014-04-19 20:07:05 +0200 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2014-04-23 06:56:32 -0300 |
commit | f916cf067d42d1dfd8ed477fdd5e3f0bda665eee (patch) | |
tree | 8c1d7cf73b983e2b50ba4d1ebc943df9050b9b52 /src/fileio.c | |
parent | e4a1ea9e0282bd3cf32c095a9519171de132c559 (diff) | |
download | rneovim-f916cf067d42d1dfd8ed477fdd5e3f0bda665eee.tar.gz rneovim-f916cf067d42d1dfd8ed477fdd5e3f0bda665eee.tar.bz2 rneovim-f916cf067d42d1dfd8ed477fdd5e3f0bda665eee.zip |
Use portable format specifiers: Remove branching with LONG_LONG_OFF_T.
After previous commits, branching code by using macro LONG_LONG_OFF_T
becomes unneccesary. Remove it.
Diffstat (limited to 'src/fileio.c')
-rw-r--r-- | src/fileio.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/fileio.c b/src/fileio.c index a9d30f83db..c09a82f613 100644 --- a/src/fileio.c +++ b/src/fileio.c @@ -4147,12 +4147,7 @@ void msg_add_lines(int insert_space, long lnum, off_t nchars) if (insert_space) *p++ = ' '; if (shortmess(SHM_LINES)) { -#ifdef LONG_LONG_OFF_T sprintf((char *)p, "%ldL, %" PRId64 "C", lnum, (int64_t)nchars); -#else - /* Explicit typecast avoids warning on Mac OS X 10.6 */ - sprintf((char *)p, "%ldL, %ldC", lnum, (long)nchars); -#endif } else { if (lnum == 1) @@ -4163,11 +4158,7 @@ void msg_add_lines(int insert_space, long lnum, off_t nchars) if (nchars == 1) STRCPY(p, _("1 character")); else { -#ifdef LONG_LONG_OFF_T sprintf((char *)p, _("%" PRId64 " characters"), nchars); -#else - sprintf((char *)p, _("%ld characters"), (long)nchars); -#endif } } } |