diff options
| author | Laurent Bercot <ska-skaware@skarnet.org> | 2025-09-18 23:18:13 +0000 |
|---|---|---|
| committer | Laurent Bercot <ska-skaware@skarnet.org> | 2025-09-18 23:18:13 +0000 |
| commit | 8671af033b2f5512e9138cbadcfc068b3ae3e135 (patch) | |
| tree | bd7655e57e01ba283cbf1c17638e13c4714b9984 /src/libs6rc/s6rc_repo_compile.c | |
| parent | 3c4f07c296d743b535d74ebaff7f13919dea1ab9 (diff) | |
| download | s6-rc-8671af033b2f5512e9138cbadcfc068b3ae3e135.tar.gz | |
Support bundles in changestate, various refactors
Diffstat (limited to 'src/libs6rc/s6rc_repo_compile.c')
| -rw-r--r-- | src/libs6rc/s6rc_repo_compile.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libs6rc/s6rc_repo_compile.c b/src/libs6rc/s6rc_repo_compile.c index 390219a..b31a981 100644 --- a/src/libs6rc/s6rc_repo_compile.c +++ b/src/libs6rc/s6rc_repo_compile.c @@ -16,7 +16,7 @@ #include <s6-rc/config.h> #include <s6-rc/repo.h> -int s6rc_repo_compile (char const *repo, char const *set, char const *const *subs, size_t nsubs, char *oldc, unsigned int verbosity, char const *fdhuser) +int s6rc_repo_compile (char const *repo, char const *set, char const *const *subs, uint8_t nsubs, char *oldc, unsigned int verbosity, char const *fdhuser) { size_t repolen = strlen(repo) ; size_t setlen = strlen(set) ; @@ -31,7 +31,7 @@ int s6rc_repo_compile (char const *repo, char const *set, char const *const *sub memcpy(newc + repolen + 37 + setlen, ":XXXXXX", 8) ; memcpy(oldc, newc, repolen + 10) ; if (mkntemp(newc) == -1) { strerr_warnfu2sys("mkntemp ", newc) ; return -1 ; } - for (size_t i = 0 ; i < nsubs ; i++) totsublen += strlen(subs[i]) + 1 ; + for (uint8_t i = 0 ; i < nsubs ; i++) totsublen += strlen(subs[i]) + 1 ; { pid_t pid ; @@ -53,7 +53,7 @@ int s6rc_repo_compile (char const *repo, char const *set, char const *const *sub } argv[m++] = "--" ; argv[m++] = newc ; - for (size_t i = 0 ; i < nsubs ; i++) + for (uint8_t i = 0 ; i < nsubs ; i++) { size_t sublen = strlen(subs[i]) ; argv[m++] = w ; |
