]> arthur.barton.de Git - netdata.git/blobdiff - src/registry_url.c
replace strcmp() with strsame() and procfile improvements
[netdata.git] / src / registry_url.c
index 52d36a898e285b713bc7ac4e969d9118071e2313..b7412adaf3706f66cf4bb18c805698c81ddaef50 100644 (file)
@@ -6,7 +6,7 @@
 int registry_url_compare(void *a, void *b) {
     if(((REGISTRY_URL *)a)->hash < ((REGISTRY_URL *)b)->hash) return -1;
     else if(((REGISTRY_URL *)a)->hash > ((REGISTRY_URL *)b)->hash) return 1;
-    else return strcmp(((REGISTRY_URL *)a)->url, ((REGISTRY_URL *)b)->url);
+    else return strsame(((REGISTRY_URL *)a)->url, ((REGISTRY_URL *)b)->url);
 }
 
 inline REGISTRY_URL *registry_url_index_add(REGISTRY_URL *u) {