diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2017-03-11 12:16:25 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2017-03-11 12:16:25 +0000 |
commit | 1b5312d5c01fd5e12b938cfe65cda562e822619d (patch) | |
tree | 60f086613e97aae5cb2635b8b9e3251c7b3c55cf /src/skaembutils/s6-pause.c | |
parent | ac77200b30d6c8bbe9093655dd0f8d8bf6e88feb (diff) | |
download | s6-portable-utils-1b5312d5c01fd5e12b938cfe65cda562e822619d.tar.xz |
Adapt to skalibs-2.5.0.0
Diffstat (limited to 'src/skaembutils/s6-pause.c')
-rw-r--r-- | src/skaembutils/s6-pause.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/skaembutils/s6-pause.c b/src/skaembutils/s6-pause.c index df09594..760dede 100644 --- a/src/skaembutils/s6-pause.c +++ b/src/skaembutils/s6-pause.c @@ -2,7 +2,7 @@ #include <unistd.h> #include <signal.h> -#include <skalibs/uint.h> +#include <skalibs/types.h> #include <skalibs/sgetopt.h> #include <skalibs/strerr2.h> #include <skalibs/sig.h> @@ -16,12 +16,12 @@ int main (int argc, char const *const *argv) { PROG = "s6-pause" ; unsigned int sigs[MAX] ; - unsigned int nsig = 0 ; + size_t nsig = 0 ; { subgetopt_t l = SUBGETOPT_ZERO ; for (;;) { - register int opt = subgetopt_r(argc, argv, "thaqbip:", &l) ; + int opt = subgetopt_r(argc, argv, "thaqbip:", &l) ; if (opt == -1) break ; switch (opt) { @@ -33,7 +33,7 @@ int main (int argc, char const *const *argv) case 'i' : if (nsig >= MAX) dieusage() ; sigs[nsig++] = SIGINT ; break ; case 'p' : { - unsigned int n ; + size_t n ; if (!uint_scanlist(sigs + nsig, MAX - nsig, l.arg, &n)) dieusage() ; nsig += n ; break ; |