We'll want `st' for a `struct stat'.
unsigned int ot = 0;
time_t nt;
pid_t kid;
- int st;
+ int rc;
#define f_bogus 1u
#define f_wait 2u
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;
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);
}