diff --git a/plugins/check_ping.c b/plugins/check_ping.c
index 420f148c140bdcf77883e6d083a7b23d5411a6ca..835d9c1b444728bb2a502d907117caf66b3cdc45 100644 (file)
--- a/plugins/check_ping.c
+++ b/plugins/check_ping.c
/* close the pipe - WARNING if status is set */
if (spclose (child_process))
/* close the pipe - WARNING if status is set */
if (spclose (child_process))
- result = max (result, STATE_WARNING);
+ result = max_state (result, STATE_WARNING);
return result;
}
return result;
}