commit 1beed9999fbf48508ec7047066ffd0c856eb9a28 from: Stefan Sperling date: Sat Jan 12 20:06:50 2019 UTC rename got_compare_paths to got_path_cmp commit - 50952927133492b33519e6b09474d9a9ae77abb6 commit + 1beed9999fbf48508ec7047066ffd0c856eb9a28 blob - a4f547bfffca9cd4b6dd169e2f1553e18d3cd663 blob + ba758006f236d8999cd3fb0b24a4c040b99a62ae --- lib/got_lib_path.h +++ lib/got_lib_path.h @@ -59,4 +59,4 @@ int got_path_is_child(const char *, const char *, size * Like strcmp() but orders children in subdirectories directly after * their parents. */ -int got_compare_paths(const char *, const char *); +int got_path_cmp(const char *, const char *); blob - ee46c557ef42afca2357843d8405531b3af0a413 blob + 89daf6bf2e9070f6c73ff0ec314771b6e1e85eec --- lib/path.c +++ lib/path.c @@ -159,7 +159,7 @@ got_path_is_child(const char *child, const char *paren } int -got_compare_paths(const char *path1, const char *path2) +got_path_cmp(const char *path1, const char *path2) { size_t len1 = strlen(path1); size_t len2 = strlen(path2); blob - c8333832714181a42144f2e99b30d523e98f686c blob + 009715ad81d4ef01404ab9f09f588a2e3dddaf57 --- regress/path/path_test.c +++ regress/path/path_test.c @@ -44,7 +44,7 @@ test_printf(char *fmt, ...) } static int -path_compare(void) +path_cmp(void) { struct path_cmp_test { const char *path1; @@ -76,7 +76,7 @@ path_compare(void) const char *path1 = test_data[i].path1; const char *path2 = test_data[i].path2; int expected = test_data[i].expected; - int cmp = got_compare_paths(path1, path2); + int cmp = got_path_cmp(path1, path2); if (cmp != expected) { test_printf("%d: '%s' vs '%s' == %d; expected %d\n", @@ -123,7 +123,7 @@ main(int argc, char *argv[]) argc -= optind; argv += optind; - RUN_TEST(path_compare(), "path_compare"); + RUN_TEST(path_cmp(), "path_cmp"); return failure ? 1 : 0; }