From df6e37e282edff109588f7e7a2b99bfffff905f3 Mon Sep 17 00:00:00 2001 From: Mark Wooding Date: Sun, 24 Apr 2016 23:30:30 +0100 Subject: [PATCH] locking.c: Rename exit status variable to `rc'. We'll want `st' for a `struct stat'. --- locking.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/locking.c b/locking.c index 9435318..b358a59 100644 --- a/locking.c +++ b/locking.c @@ -95,7 +95,7 @@ int main(int argc, char *argv[]) unsigned int ot = 0; time_t nt; pid_t kid; - int st; + int rc; #define f_bogus 1u #define f_wait 2u @@ -205,7 +205,7 @@ doneopts: execvp(prog, av); die(111, "couldn't exec `%s': %s", prog, strerror(errno)); } - if (waitpid(kid, &st, 0) < 0) + if (waitpid(kid, &rc, 0) < 0) die(EXIT_FAILURE, "error from wait: %s", strerror(errno)); l.l_type = F_UNLCK; l.l_whence = SEEK_SET; @@ -213,7 +213,7 @@ doneopts: l.l_len = 0; fcntl(fd, F_SETLK, &l); close(fd); - if (WIFEXITED(st)) exit(WEXITSTATUS(st)); + if (WIFEXITED(rc)) exit(WEXITSTATUS(rc)); else exit(255); } -- 2.11.0