Use predefined constant in place of magic string

This commit is contained in:
Piotr Wójcik authored and Juan RP committed 2019-11-02 11:53:14 +01:00
1 parent a7830cf780
commit ce4873a1f1
1 file changed
+2 -2
+2 -2
View File
@@ -196,12 +196,12 @@ xbps_repo_fetch_remote(struct xbps_repo *repo, const char *url)
if (bfile[0] == '.')
bfile++; /* skip first dot */
if (strcmp(bfile, "index-meta.plist") == 0) {
if (strcmp(bfile, XBPS_REPOIDX_META) == 0) {
buf = xbps_archive_get_file(a, entry);
repo->idxmeta = xbps_dictionary_internalize(buf);
free(buf);
i++;
} else if (strcmp(bfile, "index.plist") == 0) {
} else if (strcmp(bfile, XBPS_REPOIDX) == 0) {
buf = xbps_archive_get_file(a, entry);
repo->idx = xbps_dictionary_internalize(buf);
free(buf);