Mercurial > vim
diff src/misc2.c @ 2545:298d8d6e69be vim73
Avoid warnings from the clang compiler. (Dominique Pelle)
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Fri, 13 Aug 2010 11:18:02 +0200 |
parents | d7ecfc8b784c |
children | 4549e0e7fbb6 |
line wrap: on
line diff
--- a/src/misc2.c +++ b/src/misc2.c @@ -784,7 +784,7 @@ vim_mem_profile_dump() { printf("\r\n"); if (mem_frees[i] > mem_allocs[i]) - printf(_("ERROR: ")); + puts(_("ERROR: ")); printf("[>%d / %4lu-%-4lu]", i, mem_allocs[i], mem_frees[i]); } @@ -827,7 +827,7 @@ alloc_clear(size) { char_u *p; - p = (lalloc((long_u)size, TRUE)); + p = lalloc((long_u)size, TRUE); if (p != NULL) (void)vim_memset(p, 0, (size_t)size); return p; @@ -3802,7 +3802,7 @@ set_crypt_method(buf, method) /* * Prepare for initializing encryption. If already doing encryption then save * the state. - * Must always be called symmetrycally with crypt_pop_state(). + * Must always be called symmetrically with crypt_pop_state(). */ void crypt_push_state() @@ -3828,7 +3828,7 @@ crypt_push_state() /* * End encryption. If doing encryption before crypt_push_state() then restore * the saved state. - * Must always be called symmetrycally with crypt_push_state(). + * Must always be called symmetrically with crypt_push_state(). */ void crypt_pop_state()