From 9408f2dcf7cade2631688300e9b58eed6bc5219a Mon Sep 17 00:00:00 2001 From: ii14 <59243201+ii14@users.noreply.github.com> Date: Fri, 7 Apr 2023 19:40:57 +0200 Subject: refactor: remove redundant const char * casts --- src/nvim/syntax.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/nvim/syntax.c') diff --git a/src/nvim/syntax.c b/src/nvim/syntax.c index 6b8cce4858..24c7568651 100644 --- a/src/nvim/syntax.c +++ b/src/nvim/syntax.c @@ -3749,7 +3749,7 @@ static void add_keyword(char *const name, const int id, const int flags, hashtab_T *const ht = (curwin->w_s->b_syn_ic) ? &curwin->w_s->b_keywtab_ic : &curwin->w_s->b_keywtab; - hashitem_T *const hi = hash_lookup(ht, (const char *)kp->keyword, + hashitem_T *const hi = hash_lookup(ht, kp->keyword, strlen(kp->keyword), hash); // even though it looks like only the kp->keyword member is @@ -5370,7 +5370,7 @@ void set_context_in_syntax_cmd(expand_T *xp, const char *arg) } // (part of) subcommand already typed - const char *p = (const char *)skiptowhite(arg); + const char *p = skiptowhite(arg); if (*p == NUL) { return; } -- cgit