diff options
author | Joseph Hunkeler <jhunkeler@users.noreply.github.com> | 2024-10-04 17:26:16 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-04 17:26:16 -0400 |
commit | a0fcdef5121d5f25ddf5e6e85941ce2a4f3ce7b1 (patch) | |
tree | ae0b6578f3052364c3909f745f651ba20f2e34a8 | |
parent | f849984228ae3f54546543e0b4877fa38fd9d7ba (diff) | |
parent | 941ac53f2f301c90ab2ada7e6067f67d4104836a (diff) | |
download | stasis-a0fcdef5121d5f25ddf5e6e85941ce2a4f3ce7b1.tar.gz |
Merge pull request #53 from jhunkeler/requirement_from_test-type
Change requirement_from_test helper to be variable, not const
-rw-r--r-- | src/delivery_install.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/delivery_install.c b/src/delivery_install.c index 6f745a7..1ecedc5 100644 --- a/src/delivery_install.c +++ b/src/delivery_install.c @@ -1,6 +1,6 @@ #include "delivery.h" -static const struct Test *requirement_from_test(struct Delivery *ctx, const char *name) { +static struct Test *requirement_from_test(struct Delivery *ctx, const char *name) { struct Test *result; result = NULL; @@ -61,7 +61,7 @@ int delivery_install_packages(struct Delivery *ctx, char *conda_install_dir, cha continue; } if (INSTALL_PKG_PIP_DEFERRED & type) { - struct Test *info = (struct Test *) requirement_from_test(ctx, name); + struct Test *info = requirement_from_test(ctx, name); if (info) { if (!strcmp(info->version, "HEAD")) { struct StrList *tag_data = strlist_init(); |