if (!n)
return 0;
- return strcmp(n, name) == 0;
+ return pakfire_string_equals(n, name);
}
char* pakfire_repo_url_replace(struct pakfire_repo* repo, const char* url) {
}
#ifdef ENABLE_DEBUG
- if (strcmp(url, buffer) != 0) {
+ if (!pakfire_string_equals(url, buffer)) {
DEBUG(repo->ctx, "Repository URL updated:");
DEBUG(repo->ctx, " From: %s\n", url);
DEBUG(repo->ctx, " To : %s\n", buffer);
else if (r1->priority < r2->priority)
return -1;
- return strcmp(r1->name, r2->name);
+ return pakfire_string_equals(r1->name, r2->name);
}
int pakfire_repo_count(struct pakfire_repo* repo) {