diff options
| author | bfredl <bjorn.linse@gmail.com> | 2022-11-28 18:11:41 +0100 | 
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-11-28 18:11:41 +0100 | 
| commit | ccd17543f32a892814c3d32eb5e979722b843da9 (patch) | |
| tree | f4768eb7d7be52402ccd55e3e4e04aecceab3e42 /src/nvim/spellfile.c | |
| parent | b2bb3973d9c7f25acfead2718d74fcf5b1e4551e (diff) | |
| parent | 3b96ccf7d35be90e49029dec76344d3d92ad91dc (diff) | |
| download | rneovim-ccd17543f32a892814c3d32eb5e979722b843da9.tar.gz rneovim-ccd17543f32a892814c3d32eb5e979722b843da9.tar.bz2 rneovim-ccd17543f32a892814c3d32eb5e979722b843da9.zip  | |
Merge pull request #21200 from dundargoc/refactor/char_u/15
refactor: replace char_u with char 15 - remove STRNLEN and STRNCPY
Diffstat (limited to 'src/nvim/spellfile.c')
| -rw-r--r-- | src/nvim/spellfile.c | 6 | 
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/spellfile.c b/src/nvim/spellfile.c index 48c3cd11e2..69847bfa10 100644 --- a/src/nvim/spellfile.c +++ b/src/nvim/spellfile.c @@ -3731,7 +3731,7 @@ static int spell_read_wordfile(spellinfo_T *spin, char_u *fname)      if (*line == '/') {        line++; -      if (STRNCMP(line, "encoding=", 9) == 0) { +      if (strncmp(line, "encoding=", 9) == 0) {          if (spin->si_conv.vc_type != CONV_NONE) {            smsg(_("Duplicate /encoding= line ignored in %s line %ld: %s"),                 fname, lnum, line - 1); @@ -3755,7 +3755,7 @@ static int spell_read_wordfile(spellinfo_T *spin, char_u *fname)          continue;        } -      if (STRNCMP(line, "regions=", 8) == 0) { +      if (strncmp(line, "regions=", 8) == 0) {          if (spin->si_region_count > 1) {            smsg(_("Duplicate /regions= line ignored in %s line %ld: %s"),                 fname, lnum, line); @@ -4895,7 +4895,7 @@ void ex_mkspell(exarg_T *eap)    char *arg = eap->arg;    bool ascii = false; -  if (STRNCMP(arg, "-ascii", 6) == 0) { +  if (strncmp(arg, "-ascii", 6) == 0) {      ascii = true;      arg = skipwhite(arg + 6);    }  | 
