Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
hashing can only be done by int not by uint8_t while here pass the right hash to the conf parsing function
Baptiste Daroussin committed 13 years ago
commit 61952d26c7bdd34de964da470d841ea9dfc9c7fe
parent f1da9ee
2 files changed +2 -2
modified libpkg/pkg_config.c
@@ -602,7 +602,7 @@ pkg_init(const char *path)
		if (node->type != YAML_MAPPING_NODE) {
			pkg_emit_error("Invalid configuration format, ignoring the configuration file");
		} else {
-
			pkg_config_parse(&doc, node, config);
+
			pkg_config_parse(&doc, node, config_by_key);
		}
	} else {
		pkg_emit_error("Invalid configuration format, ignoring the configuration file");
modified libpkg/private/pkg.h
@@ -195,7 +195,7 @@ struct pkg_shlib {
};

struct pkg_config {
-
	uint8_t id;
+
	int id;
	uint8_t type;
	const char *key;
	const void *def;