# HG changeset patch # User Mike Becker # Date 1526314572 -7200 # Node ID b09677d724135aff637ad4718d4bd9faebf2c285 # Parent 4355c6039a28f48bd91d5399bfad27197af69fcc renames ucx_sstrcmp() to ucx_cmp_sstr() diff -r 4355c6039a28 -r b09677d72413 docs/src/modules.md --- a/docs/src/modules.md Mon May 14 18:13:03 2018 +0200 +++ b/docs/src/modules.md Mon May 14 18:16:12 2018 +0200 @@ -204,7 +204,7 @@ UcxList* remove_duplicates(sstr_t* array, size_t arrlen) { UcxList* list = NULL; for (size_t i = 0 ; i < arrlen ; ++i) { - if (ucx_list_find(list, array+i, ucx_sstrcmp, NULL) == -1) { + if (ucx_list_find(list, array+i, ucx_cmp_sstr, NULL) == -1) { sstr_t* s = malloc(sizeof(sstr_t)); *s = sstrdup(array[i]); list = ucx_list_append(list, s); diff -r 4355c6039a28 -r b09677d72413 src/ucx/utils.h --- a/src/ucx/utils.h Mon May 14 18:13:03 2018 +0200 +++ b/src/ucx/utils.h Mon May 14 18:16:12 2018 +0200 @@ -162,7 +162,7 @@ * @param data ignored * @return the result of sstrcmp(s1, s2) */ -int ucx_sstrcmp(const void *s1, const void *s2, void *data); +int ucx_cmp_sstr(const void *s1, const void *s2, void *data); /** * Compares two integers of type int. diff -r 4355c6039a28 -r b09677d72413 src/utils.c --- a/src/utils.c Mon May 14 18:13:03 2018 +0200 +++ b/src/utils.c Mon May 14 18:16:12 2018 +0200 @@ -96,7 +96,7 @@ return strncmp((const char*)s1, (const char*)s2, *((size_t*) n)); } -int ucx_sstrcmp(const void *s1, const void *s2, void *data) { +int ucx_cmp_sstr(const void *s1, const void *s2, void *data) { sstr_t a = *(const sstr_t*) s1; sstr_t b = *(const sstr_t*) s2; return sstrcmp(a, b);