From c60ebd422171808ad58b936914055397bb205bef Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Sun, 12 Mar 2017 11:59:43 +0000 Subject: Adapt to skalibs-2.5.0.0 --- src/pipe-tools/s6-ftrig-listen.c | 7 +++---- src/pipe-tools/s6-ftrig-listen1.c | 7 +++---- src/pipe-tools/s6-ftrig-wait.c | 4 ++-- src/pipe-tools/s6-mkfifodir.c | 4 ++-- 4 files changed, 10 insertions(+), 12 deletions(-) (limited to 'src/pipe-tools') diff --git a/src/pipe-tools/s6-ftrig-listen.c b/src/pipe-tools/s6-ftrig-listen.c index 112c853..f0ef2bf 100644 --- a/src/pipe-tools/s6-ftrig-listen.c +++ b/src/pipe-tools/s6-ftrig-listen.c @@ -1,12 +1,11 @@ /* ISC license. */ -#include #include #include #include #include #include -#include +#include #include #include #include @@ -43,7 +42,7 @@ int main (int argc, char const **argv, char const *const *envp) unsigned int t = 0 ; for (;;) { - register int opt = subgetopt(argc, argv, "aot:") ; + int opt = subgetopt(argc, argv, "aot:") ; if (opt == -1) break ; switch (opt) { @@ -85,7 +84,7 @@ int main (int argc, char const **argv, char const *const *envp) for (;;) { - register int r ; + int r ; i = 0 ; while (i < idlen) { diff --git a/src/pipe-tools/s6-ftrig-listen1.c b/src/pipe-tools/s6-ftrig-listen1.c index f5f7814..e9a5e82 100644 --- a/src/pipe-tools/s6-ftrig-listen1.c +++ b/src/pipe-tools/s6-ftrig-listen1.c @@ -1,12 +1,11 @@ /* ISC license. */ -#include #include #include #include #include #include -#include +#include #include #include #include @@ -40,7 +39,7 @@ int main (int argc, char const *const *argv, char const *const *envp) unsigned int t = 0 ; for (;;) { - register int opt = subgetopt(argc, argv, "t:") ; + int opt = subgetopt(argc, argv, "t:") ; if (opt == -1) break ; switch (opt) { @@ -73,7 +72,7 @@ int main (int argc, char const *const *argv, char const *const *envp) for (;;) { char dummy ; - register int r = ftrigr_check(&a, id, &dummy) ; + int r = ftrigr_check(&a, id, &dummy) ; if (r < 0) strerr_diefu1sys(111, "ftrigr_check") ; if (r) break ; r = iopause_g(x, 2, &deadline) ; diff --git a/src/pipe-tools/s6-ftrig-wait.c b/src/pipe-tools/s6-ftrig-wait.c index 40d458e..5aca73c 100644 --- a/src/pipe-tools/s6-ftrig-wait.c +++ b/src/pipe-tools/s6-ftrig-wait.c @@ -4,7 +4,7 @@ #include #include #include -#include +#include #include #include #include @@ -22,7 +22,7 @@ int main (int argc, char const *const *argv) unsigned int t = 0 ; for (;;) { - register int opt = subgetopt(argc, argv, "t:") ; + int opt = subgetopt(argc, argv, "t:") ; if (opt == -1) break ; switch (opt) { diff --git a/src/pipe-tools/s6-mkfifodir.c b/src/pipe-tools/s6-mkfifodir.c index 268d822..cad7d06 100644 --- a/src/pipe-tools/s6-mkfifodir.c +++ b/src/pipe-tools/s6-mkfifodir.c @@ -2,7 +2,7 @@ #include #include -#include +#include #include #include @@ -16,7 +16,7 @@ int main (int argc, char const *const *argv) PROG = "s6-mkfifodir" ; for (;;) { - register int opt = subgetopt_r(argc, argv, "fg:", &l) ; + int opt = subgetopt_r(argc, argv, "fg:", &l) ; if (opt == -1) break ; switch (opt) { -- cgit v1.2.3