# HG changeset patch # User Mike Becker # Date 1526314756 -7200 # Node ID e1f3248576bc9cd3f4573285af549227360e63d9 # Parent b09677d724135aff637ad4718d4bd9faebf2c285 renames ucx_memcmp() to ucx_cmp_mem() diff -r b09677d72413 -r e1f3248576bc src/ucx/utils.h --- a/src/ucx/utils.h Mon May 14 18:16:12 2018 +0200 +++ b/src/ucx/utils.h Mon May 14 18:19:16 2018 +0200 @@ -241,7 +241,7 @@ * @param n a pointer to the size_t containing the third parameter for memcmp * @return the result of memcmp(ptr1, ptr2, *n) */ -int ucx_memcmp(const void *ptr1, const void *ptr2, void *n); +int ucx_cmp_mem(const void *ptr1, const void *ptr2, void *n); /** * A printf() like function which writes the output to a stream by diff -r b09677d72413 -r e1f3248576bc src/utils.c --- a/src/utils.c Mon May 14 18:16:12 2018 +0200 +++ b/src/utils.c Mon May 14 18:19:16 2018 +0200 @@ -166,7 +166,7 @@ } } -int ucx_memcmp(const void *ptr1, const void *ptr2, void *n) { +int ucx_cmp_mem(const void *ptr1, const void *ptr2, void *n) { return memcmp(ptr1, ptr2, *((size_t*)n)); }