aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/hardcopy.c
diff options
context:
space:
mode:
authorbfredl <bjorn.linse@gmail.com>2022-08-12 14:44:28 +0200
committerGitHub <noreply@github.com>2022-08-12 14:44:28 +0200
commit54a165d9a644e822207f02bdd4cf1b810d2788e3 (patch)
treef09ca6baf124ceaeaef27c095fee1e30ecb772b0 /src/nvim/hardcopy.c
parentf79773a3b4b3ce5a3b37652a72b12089880f32a4 (diff)
parent094cdf2d691bc005dadb5a22bb83b85f3b6dff49 (diff)
downloadrneovim-54a165d9a644e822207f02bdd4cf1b810d2788e3.tar.gz
rneovim-54a165d9a644e822207f02bdd4cf1b810d2788e3.tar.bz2
rneovim-54a165d9a644e822207f02bdd4cf1b810d2788e3.zip
Merge pull request #19592 from dundargoc/refactor/char_u-to-char
refactor: replace char_u with char
Diffstat (limited to 'src/nvim/hardcopy.c')
-rw-r--r--src/nvim/hardcopy.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/nvim/hardcopy.c b/src/nvim/hardcopy.c
index 96d3bfb4d3..14fb1111d9 100644
--- a/src/nvim/hardcopy.c
+++ b/src/nvim/hardcopy.c
@@ -292,8 +292,8 @@ static char *parse_list_options(char_u *option_str, option_table_T *table, size_
char *ret = NULL;
char_u *stringp;
char_u *colonp;
- char_u *commap;
- char_u *p;
+ char *commap;
+ char *p;
size_t idx = 0; // init for GCC
int len;
@@ -315,9 +315,9 @@ static char *parse_list_options(char_u *option_str, option_table_T *table, size_
ret = N_("E550: Missing colon");
break;
}
- commap = (char_u *)vim_strchr((char *)stringp, ',');
+ commap = vim_strchr((char *)stringp, ',');
if (commap == NULL) {
- commap = option_str + STRLEN(option_str);
+ commap = (char *)option_str + STRLEN(option_str);
}
len = (int)(colonp - stringp);
@@ -333,8 +333,8 @@ static char *parse_list_options(char_u *option_str, option_table_T *table, size_
break;
}
- p = colonp + 1;
- table[idx].present = TRUE;
+ p = (char *)colonp + 1;
+ table[idx].present = true;
if (table[idx].hasnum) {
if (!ascii_isdigit(*p)) {
@@ -342,13 +342,13 @@ static char *parse_list_options(char_u *option_str, option_table_T *table, size_
break;
}
- table[idx].number = getdigits_int((char **)&p, false, 0);
+ table[idx].number = getdigits_int(&p, false, 0);
}
- table[idx].string = p;
+ table[idx].string = (char_u *)p;
table[idx].strlen = (int)(commap - p);
- stringp = commap;
+ stringp = (char_u *)commap;
if (*stringp == ',') {
++stringp;
}