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/undo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/nvim/undo.c') diff --git a/src/nvim/undo.c b/src/nvim/undo.c index 873970fc39..132c84231f 100644 --- a/src/nvim/undo.c +++ b/src/nvim/undo.c @@ -1179,7 +1179,7 @@ void u_write_undo(const char *const name, const bool forceit, buf_T *const buf, // allow the user to access the undo file. int perm = 0600; if (buf->b_ffname != NULL) { - perm = os_getperm((const char *)buf->b_ffname); + perm = os_getperm(buf->b_ffname); if (perm < 0) { perm = 0600; } -- cgit