Mercurial > vim
comparison src/misc2.c @ 8340:c66e1f50c142 v7.4.1462
commit https://github.com/vim/vim/commit/2f6271b1e7cff985cac66f6850116bcf3fcccd58
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Feb 29 21:20:48 2016 +0100
patch 7.4.1462
Problem: Two more rarily used functions with errors.
Solution: Add proper argument types. (Dominique Pelle)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Mon, 29 Feb 2016 21:30:06 +0100 |
parents | 05b88224cea1 |
children | caed4b2d305f |
comparison
equal
deleted
inserted
replaced
8339:95f886ce5580 | 8340:c66e1f50c142 |
---|---|
1727 } | 1727 } |
1728 return 0; | 1728 return 0; |
1729 } | 1729 } |
1730 #endif | 1730 #endif |
1731 | 1731 |
1732 /* skipped when generating prototypes, the prototype is in vim.h */ | |
1732 #ifdef VIM_MEMMOVE | 1733 #ifdef VIM_MEMMOVE |
1733 /* | 1734 /* |
1734 * Version of memmove() that handles overlapping source and destination. | 1735 * Version of memmove() that handles overlapping source and destination. |
1735 * For systems that don't have a function that is guaranteed to do that (SYSV). | 1736 * For systems that don't have a function that is guaranteed to do that (SYSV). |
1736 */ | 1737 */ |
1737 void | 1738 void |
1738 mch_memmove(void *src_arg, *dst_arg, size_t len) | 1739 mch_memmove(void *src_arg, void *dst_arg, size_t len) |
1739 { | 1740 { |
1740 /* | 1741 /* |
1741 * A void doesn't have a size, we use char pointers. | 1742 * A void doesn't have a size, we use char pointers. |
1742 */ | 1743 */ |
1743 char *dst = dst_arg, *src = src_arg; | 1744 char *dst = dst_arg, *src = src_arg; |