chiark / gitweb /
rfreezefs.c: Use the `N()' macro.
[rsync-backup] / rfreezefs.c
index 7d05b98269b6b5148a9342862c56827967e5aa8a..fa1f053901885db31895706da9e8bfbb01427216 100644 (file)
@@ -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));
   }