diff options
author | Felipe Oliveira Carvalho <felipekde@gmail.com> | 2014-03-24 20:30:14 -0300 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2014-03-25 18:57:02 -0300 |
commit | ed3e9d51ac2fd2a24d244796dd9cebfe0a19bc6d (patch) | |
tree | ecb1f753dd0fad9889aca15a083c7c99c1407ba7 /src/sha256.c | |
parent | 68bc6bce2923f049f84d919aea24600f18139a46 (diff) | |
download | rneovim-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/sha256.c')
-rw-r--r-- | src/sha256.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/sha256.c b/src/sha256.c index 1670221929..0ccb13d763 100644 --- a/src/sha256.c +++ b/src/sha256.c @@ -13,6 +13,8 @@ /// 2. sha2_seed() generates a random header. /// sha256_self_test() is implicitly called once. +#include <string.h> + #include "vim.h" #include "sha256.h" @@ -342,7 +344,7 @@ int sha256_self_test(void) STRCPY(output, hexit); } else { sha256_start(&ctx); - vim_memset(buf, 'a', 1000); + memset(buf, 'a', 1000); for (j = 0; j < 1000; j++) { sha256_update(&ctx, (char_u *) buf, 1000); |