Rather than writing the magic out longhand.
* Hopefully this will prevent bad things happening if we have an accident.
*/
* Hopefully this will prevent bad things happening if we have an accident.
*/
- for (i = 0; i < sizeof(sigcatch)/sizeof(sigcatch[0]); i++) {
+ for (i = 0; i < N(sigcatch); i++) {
if (signal(sigcatch[i], sigmumble) == SIG_ERR)
die(2, "signal (%d): %s", i, strerror(errno));
}
if (signal(sigcatch[i], sigmumble) == SIG_ERR)
die(2, "signal (%d): %s", i, strerror(errno));
}