From 6d953b22ae50261812b27ba84ecd6dc33b2007de Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Mon, 30 Jun 2025 14:41:53 +0000 Subject: Adapt to new gol Signed-off-by: Laurent Bercot --- src/s6/process_status.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/s6/process_status.c') 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 ; } -- cgit v1.3.1