Commit Diff


commit - 4ba899b3f71214e07c64451621cfa5e2aafe68f0
commit + 398789b2a47fcb448382e7d5f6c7e4b57f22d8ec
blob - 6373c0d0b3bc7daac7f957b796f78b80f03b7c97
blob + 66676de9241d960fbd1fb6bdd78e7747f1f45750
--- lib/pathset.c
+++ lib/pathset.c
@@ -72,7 +72,7 @@ RB_PROTOTYPE(got_pathset_tree, got_pathset_element, en
 struct got_pathset {
 	struct got_pathset_tree entries;
 	int totelem;
-#define GOT_OBJECT_IDSET_MAX_ELEM INT_MAX
+#define GOT_PATHSET_MAX_ELEM INT_MAX
 };
 
 struct got_pathset *
@@ -116,7 +116,7 @@ got_pathset_add(struct got_pathset *set, const char *p
 {
 	struct got_pathset_element *new;
 
-	if (set->totelem >= GOT_OBJECT_IDSET_MAX_ELEM)
+	if (set->totelem >= GOT_PATHSET_MAX_ELEM)
 		return got_error(GOT_ERR_NO_SPACE);
 
 	new = malloc(sizeof(*new));