From aaf1bb2bfb55ae2ede044ee4b33429303bedcf53 Mon Sep 17 00:00:00 2001 From: Mark Wooding Date: Mon, 22 Dec 2014 20:32:58 +0000 Subject: [PATCH 1/1] rfreezefs.c: Use the `N()' macro. Rather than writing the magic out longhand. --- rfreezefs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rfreezefs.c b/rfreezefs.c index 7d05b98..fa1f053 100644 --- a/rfreezefs.c +++ b/rfreezefs.c @@ -557,7 +557,7 @@ connected: * 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)); } -- 2.11.0