diff options
author | Bram Moolenaar <Bram@vim.org> | 2016-04-22 11:49:06 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2016-04-22 11:49:06 +0200 |
commit | 902647d2dfb42dce8449dfbbc22dab27a528744d (patch) | |
tree | dbac9acc233c18992006da8d05c717223ad4aef8 /src/term.c | |
parent | 380130f1e18da92a44372728fe044f56db58585b (diff) | |
download | vim-git-902647d2dfb42dce8449dfbbc22dab27a528744d.tar.gz |
patch 7.4.1774v7.4.1774
Problem: Cterm true color feature has warnings.
Solution: Add type casts.
Diffstat (limited to 'src/term.c')
-rw-r--r-- | src/term.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/term.c b/src/term.c index d85cd537b..29b48e900 100644 --- a/src/term.c +++ b/src/term.c @@ -1383,9 +1383,8 @@ termtrue_mch_get_color(char_u *name) { int len; int pos; - char *color; - ignored = fgets(line, LINE_LEN, fd); + (void)fgets(line, LINE_LEN, fd); len = strlen(line); if (len <= 1 || line[len-1] != '\n') @@ -1397,9 +1396,7 @@ termtrue_mch_get_color(char_u *name) if (i != 3) continue; - color = line + pos; - - if (STRICMP(color, name) == 0) + if (STRICMP(line + pos, name) == 0) { fclose(fd); return (guicolor_T) RGB(r, g, b); |