aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2014-12-12 11:20:35 -0500
committerJustin M. Keyes <justinkz@gmail.com>2014-12-12 11:20:35 -0500
commita44eec1789bc4e012e7671c112a39a417c340f9a (patch)
tree8683d11b893e14ed0a5e7b2c5db2836b5fdebb75
parentc7292866043cc426d394aa6b586168dc2112daef (diff)
downloadrneovim-a44eec1789bc4e012e7671c112a39a417c340f9a.tar.gz
rneovim-a44eec1789bc4e012e7671c112a39a417c340f9a.tar.bz2
rneovim-a44eec1789bc4e012e7671c112a39a417c340f9a.zip
strcnt: remove unused parameter
-rw-r--r--src/nvim/memory.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/memory.c b/src/nvim/memory.c
index c221b13f8b..f38dfd56ac 100644
--- a/src/nvim/memory.c
+++ b/src/nvim/memory.c
@@ -241,7 +241,7 @@ void memchrsub(void *data, char c, char x, size_t len)
/// @param str Pointer to the string to search.
/// @param c The byte to search for.
/// @returns the number of occurrences of `c` in `str`.
-size_t strcnt(const char *str, char c, size_t len)
+size_t strcnt(const char *str, char c)
FUNC_ATTR_NONNULL_ALL FUNC_ATTR_PURE
{
assert(c != 0);