return strcmp(m->dir, dir) == 0;
}
-HTABLE_DEFINE_TYPE(struct manifest, manifest_name, dir_hash, dir_cmp,
- htable_manifest);
+HTABLE_DEFINE_NODUPS_TYPE(struct manifest, manifest_name, dir_hash, dir_cmp,
+ htable_manifest);
static struct htable_manifest *manifests;
const char *get_ccan_file_contents(struct ccan_file *f)
}
static int cmp_names(struct ccan_file *const *a, struct ccan_file *const *b,
- void *unused)
+ void *unused UNNEEDED)
{
return strcmp((*a)->name, (*b)->name);
}