comparison src/term.c @ 20830:9064044fd4f6 v8.2.0967

patch 8.2.0967: unnecessary type casts for vim_strnsave() Commit: https://github.com/vim/vim/commit/71ccd03ee8a43b20000214a9c99dcc90f039edca Author: Bram Moolenaar <Bram@vim.org> Date: Fri Jun 12 22:59:11 2020 +0200 patch 8.2.0967: unnecessary type casts for vim_strnsave() Problem: Unnecessary type casts for vim_strnsave(). Solution: Remove the type casts.
author Bram Moolenaar <Bram@vim.org>
date Fri, 12 Jun 2020 23:00:04 +0200
parents 6d5e233bac9c
children 2616c5a337e0
comparison
equal deleted inserted replaced
20829:3d0d6410aecd 20830:9064044fd4f6
4084 del_termcode(name); 4084 del_termcode(name);
4085 return; 4085 return;
4086 } 4086 }
4087 4087
4088 #if defined(MSWIN) && !defined(FEAT_GUI) 4088 #if defined(MSWIN) && !defined(FEAT_GUI)
4089 s = vim_strnsave(string, (int)STRLEN(string) + 1); 4089 s = vim_strnsave(string, STRLEN(string) + 1);
4090 #else 4090 #else
4091 # ifdef VIMDLL 4091 # ifdef VIMDLL
4092 if (!gui.in_use) 4092 if (!gui.in_use)
4093 s = vim_strnsave(string, (int)STRLEN(string) + 1); 4093 s = vim_strnsave(string, STRLEN(string) + 1);
4094 else 4094 else
4095 # endif 4095 # endif
4096 s = vim_strsave(string); 4096 s = vim_strsave(string);
4097 #endif 4097 #endif
4098 if (s == NULL) 4098 if (s == NULL)