diff options
| author | Laurent Bercot <ska-skaware@skarnet.org> | 2025-06-30 14:41:53 +0000 |
|---|---|---|
| committer | Laurent Bercot <ska@appnovation.com> | 2025-06-30 14:41:53 +0000 |
| commit | 6d953b22ae50261812b27ba84ecd6dc33b2007de (patch) | |
| tree | 82d61de117f1e8ec02522c3d2eb40bd78877c543 /src/s6/process_status.c | |
| parent | 8a6eaed305dbe4ec6a87fe37000f7461bf563937 (diff) | |
| download | s6-frontend-6d953b22ae50261812b27ba84ecd6dc33b2007de.tar.gz | |
Adapt to new gol
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src/s6/process_status.c')
| -rw-r--r-- | src/s6/process_status.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/s6/process_status.c b/src/s6/process_status.c index 96eb84b..a13938d 100644 --- a/src/s6/process_status.c +++ b/src/s6/process_status.c @@ -73,26 +73,26 @@ static int do_status (char const *dir, int withlog) } -enum process_status_golb_e +enum golb_e { - PROCESS_STATUS_GOLB_WITHLOGS, - PROCESS_STATUS_GOLB_N + GOLB_WITHLOGS, + GOLB_N } ; -static gol_bool const process_status_golb[1] = +static gol_bool const rgolb[1] = { - { .so = 'l', .lo = "with-logs", .set = 1, .mask = 1 << PROCESS_STATUS_GOLB_WITHLOGS } + { .so = 'l', .lo = "with-logs", .clear = 0, .set = 1 << GOLB_WITHLOGS } } ; int process_status (char const *const *argv) { size_t scandirlen = strlen(g->dirs.scan) ; - uint64_t golb = 0 ; + uint64_t wgolb = 0 ; int e = 0 ; PROG = "s6 process status" ; - argv += gol_argv(argv, process_status_golb, 1, 0, 0, &golb, 0) ; + argv += gol_argv(argv, rgolb, 1, 0, 0, &wgolb, 0) ; if (!argv) dieusage() ; process_check_services(argv, env_len(argv)) ; for (; *argv ; argv++) @@ -102,7 +102,7 @@ int process_status (char const *const *argv) memcpy(path, g->dirs.scan, scandirlen) ; path[scandirlen] = '/' ; memcpy(path + scandirlen + 1, *argv, len+1) ; - if (do_status(path, !!(golb & 1 << PROCESS_STATUS_GOLB_WITHLOGS))) e = 1 ; + if (do_status(path, !!(wgolb & 1 << GOLB_WITHLOGS))) e = 1 ; } return e ; } |
