aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@users.noreply.github.com>2024-10-04 17:26:16 -0400
committerGitHub <noreply@github.com>2024-10-04 17:26:16 -0400
commita0fcdef5121d5f25ddf5e6e85941ce2a4f3ce7b1 (patch)
treeae0b6578f3052364c3909f745f651ba20f2e34a8 /src
parentf849984228ae3f54546543e0b4877fa38fd9d7ba (diff)
parent941ac53f2f301c90ab2ada7e6067f67d4104836a (diff)
downloadstasis-a0fcdef5121d5f25ddf5e6e85941ce2a4f3ce7b1.tar.gz
Merge pull request #53 from jhunkeler/requirement_from_test-type
Change requirement_from_test helper to be variable, not const
Diffstat (limited to 'src')
-rw-r--r--src/delivery_install.c4
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();