diff options
author | sinanmohd <sinan@sinanmohd.com> | 2024-06-29 07:21:15 +0530 |
---|---|---|
committer | sinanmohd <sinan@sinanmohd.com> | 2024-06-29 14:00:36 +0530 |
commit | bf2d66357b9135442f9dec277678b0597abc1d15 (patch) | |
tree | 0992fb6017d19c1c2c1b6eae660896fd042f6a0f /src/build.c | |
parent | b3fe04359cd0c3a1b9a1bed55d804c2897ad4eac (diff) |
solver_util: init
Diffstat (limited to 'src/build.c')
-rw-r--r-- | src/build.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/build.c b/src/build.c index 87238e9..30a821a 100644 --- a/src/build.c +++ b/src/build.c @@ -1,8 +1,8 @@ #include <errno.h> +#include <limits.h> #include <pthread.h> #include <stdbool.h> #include <stdlib.h> -#include <limits.h> #include <string.h> #include "build.h" @@ -54,8 +54,9 @@ static int build(struct queue *queue) if (ret < 0) return ret; - if (job->attr) { - ret = snprintf(out_link, sizeof(out_link), "result-%s", job->attr); + if (job->nix_attr_name) { + ret = snprintf(out_link, sizeof(out_link), "result-%s", + job->nix_attr_name); if (ret < 0 || (size_t)ret > sizeof(out_link)) { ret = -ENAMETOOLONG; print_err("%s", strerror(-ret)); |