mirror of
https://github.com/neovim/neovim.git
synced 2025-10-07 10:26:31 +00:00
refactor: remove redundant const char * casts
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user