aboutsummaryrefslogtreecommitdiff
path: root/src/getchar.c
diff options
context:
space:
mode:
authorFelipe Oliveira Carvalho <felipekde@gmail.com>2014-03-24 20:30:14 -0300
committerThiago de Arruda <tpadilha84@gmail.com>2014-03-25 18:57:02 -0300
commited3e9d51ac2fd2a24d244796dd9cebfe0a19bc6d (patch)
treeecb1f753dd0fad9889aca15a083c7c99c1407ba7 /src/getchar.c
parent68bc6bce2923f049f84d919aea24600f18139a46 (diff)
downloadrneovim-ed3e9d51ac2fd2a24d244796dd9cebfe0a19bc6d.tar.gz
rneovim-ed3e9d51ac2fd2a24d244796dd9cebfe0a19bc6d.tar.bz2
rneovim-ed3e9d51ac2fd2a24d244796dd9cebfe0a19bc6d.zip
Use memset instead of vim_memset
Ran some commands on terminal, reviewed changes, and made some manual changes too. find src | xargs perl -i -p -e "s/vim_memset/memset/g" git grep -l memset | egrep "\.c$" | xargs perl -i -p -e \ 's/(#include "vim\.h")/#include <string.h>\n\n\1/g'
Diffstat (limited to 'src/getchar.c')
-rw-r--r--src/getchar.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/getchar.c b/src/getchar.c
index 87bd899880..e0b4b59e9d 100644
--- a/src/getchar.c
+++ b/src/getchar.c
@@ -16,6 +16,8 @@
* mappings and abbreviations
*/
+#include <string.h>
+
#include "vim.h"
#include "getchar.h"
#include "charset.h"
@@ -3073,7 +3075,7 @@ static void map_free(mapblock_T **mpp)
static void validate_maphash(void)
{
if (!maphash_valid) {
- vim_memset(maphash, 0, sizeof(maphash));
+ memset(maphash, 0, sizeof(maphash));
maphash_valid = TRUE;
}
}