comparison src/term.c @ 15543:dd725a8ab112 v8.1.0779

patch 8.1.0779: argument for message functions is inconsistent commit https://github.com/vim/vim/commit/32526b3c1846025f0e655f41efd4e5428da16b6c Author: Bram Moolenaar <Bram@vim.org> Date: Sat Jan 19 17:43:09 2019 +0100 patch 8.1.0779: argument for message functions is inconsistent Problem: Argument for message functions is inconsistent. Solution: Make first argument to msg() "char *".
author Bram Moolenaar <Bram@vim.org>
date Sat, 19 Jan 2019 17:45:07 +0100
parents 55ccc2d353bd
children d89c5b339c2a
comparison
equal deleted inserted replaced
15542:5baedae7ca7a 15543:dd725a8ab112
6371 items = (int *)alloc((unsigned)(sizeof(int) * tc_len)); 6371 items = (int *)alloc((unsigned)(sizeof(int) * tc_len));
6372 if (items == NULL) 6372 if (items == NULL)
6373 return; 6373 return;
6374 6374
6375 /* Highlight title */ 6375 /* Highlight title */
6376 MSG_PUTS_TITLE(_("\n--- Terminal keys ---")); 6376 msg_puts_title(_("\n--- Terminal keys ---"));
6377 6377
6378 /* 6378 /*
6379 * do the loop two times: 6379 * do the loop two times:
6380 * 1. display the short items (non-strings and short strings) 6380 * 1. display the short items (non-strings and short strings)
6381 * 2. display the medium items (medium length strings) 6381 * 2. display the medium items (medium length strings)
6473 else 6473 else
6474 len += vim_strsize(code); 6474 len += vim_strsize(code);
6475 6475
6476 if (printit) 6476 if (printit)
6477 { 6477 {
6478 msg_puts(IObuff); 6478 msg_puts((char *)IObuff);
6479 if (code == NULL) 6479 if (code == NULL)
6480 msg_puts((char_u *)"NULL"); 6480 msg_puts("NULL");
6481 else 6481 else
6482 msg_outtrans(code); 6482 msg_outtrans(code);
6483 } 6483 }
6484 return len; 6484 return len;
6485 } 6485 }
7011 fd = fopen((char *)fname, "rt"); 7011 fd = fopen((char *)fname, "rt");
7012 vim_free(fname); 7012 vim_free(fname);
7013 if (fd == NULL) 7013 if (fd == NULL)
7014 { 7014 {
7015 if (p_verbose > 1) 7015 if (p_verbose > 1)
7016 verb_msg((char_u *)_("Cannot open $VIMRUNTIME/rgb.txt")); 7016 verb_msg(_("Cannot open $VIMRUNTIME/rgb.txt"));
7017 return INVALCOLOR; 7017 return INVALCOLOR;
7018 } 7018 }
7019 7019
7020 for (counting = 1; counting >= 0; --counting) 7020 for (counting = 1; counting >= 0; --counting)
7021 { 7021 {