refactor(options): use const in more places (#31791)

This commit is contained in:
Famiu Haque
2025-01-01 19:45:14 +06:00
committed by GitHub
parent 59cbe64023
commit 9d114b7205
4 changed files with 26 additions and 20 deletions

View File

@@ -1901,7 +1901,7 @@ int makemap(FILE *fd, buf_T *buf)
// "what": 0 for :map lhs, 1 for :map rhs, 2 for :set
//
// return FAIL for failure, OK otherwise
int put_escstr(FILE *fd, char *strstart, int what)
int put_escstr(FILE *fd, const char *strstart, int what)
{
uint8_t *str = (uint8_t *)strstart;