update: function cleanups, better way to handle package paths
This commit is contained in:
@ -21,17 +21,14 @@ int main(int argc, char *argv[]) {
|
||||
goto end;
|
||||
}
|
||||
|
||||
if (!lm_ctx_pools_add(&ctx, "test", argv[1])) {
|
||||
if (lm_ctx_pools_add(&ctx, "test", argv[1]) == NULL) {
|
||||
printf("failed to add pool: %s (%d)\n", lm_strerror(), lm_error());
|
||||
goto end;
|
||||
}
|
||||
|
||||
lm_ctx_pools_test(&ctx);
|
||||
|
||||
if (!lm_ctx_pools_load(&ctx, true, NULL, NULL)) {
|
||||
printf("failed to load pools: %s (%d)\n", lm_strerror(), lm_error());
|
||||
goto end;
|
||||
}
|
||||
lm_ctx_pools_test(&ctx, NULL, NULL);
|
||||
lm_ctx_pools_get_info(&ctx, true, NULL, NULL);
|
||||
lm_ctx_pools_get_list(&ctx, true, NULL, NULL);
|
||||
|
||||
ret = EXIT_SUCCESS;
|
||||
|
||||
|
Reference in New Issue
Block a user