# HG changeset patch # User Mike Becker # Date 1526314383 -7200 # Node ID 4355c6039a28f48bd91d5399bfad27197af69fcc # Parent d6f5806215122c499d45c08357a9783706e40e09 renames ucx_strncmp() to ucx_cmp_strn() diff -r d6f580621512 -r 4355c6039a28 src/ucx/utils.h --- a/src/ucx/utils.h Mon May 14 18:12:14 2018 +0200 +++ b/src/ucx/utils.h Mon May 14 18:13:03 2018 +0200 @@ -153,7 +153,7 @@ * @param n a pointer to the size_t containing the third strncmp parameter * @return the result of strncmp(s1, s2, *n) */ -int ucx_strncmp(const void *s1, const void *s2, void *n); +int ucx_cmp_strn(const void *s1, const void *s2, void *n); /** * Wraps the sstrcmp function. diff -r d6f580621512 -r 4355c6039a28 src/utils.c --- a/src/utils.c Mon May 14 18:12:14 2018 +0200 +++ b/src/utils.c Mon May 14 18:13:03 2018 +0200 @@ -92,7 +92,7 @@ return strcmp((const char*)s1, (const char*)s2); } -int ucx_strncmp(const void *s1, const void *s2, void *n) { +int ucx_cmp_strn(const void *s1, const void *s2, void *n) { return strncmp((const char*)s1, (const char*)s2, *((size_t*) n)); }