diff options
| author | Thomas Guyot-Sionnest <dermoth@aei.ca> | 2011-09-06 23:20:21 -0400 |
|---|---|---|
| committer | Thomas Guyot-Sionnest <dermoth@aei.ca> | 2011-09-06 23:20:21 -0400 |
| commit | f917244ab55917094bfe3bead0e905baad385821 (patch) | |
| tree | f022af56c32cca382f553ffbd5a2638c4cb23449 | |
| parent | 4d06603060fc1233861b164870f0d3a2e0d8d2eb (diff) | |
| download | monitoring-plugins-f917244ab55917094bfe3bead0e905baad385821.tar.gz | |
Make GCC happy
It won't trust us about msg containing no format string, and fail miserably
when compiled with -Werror=format-security. Reported by spy6 on IRC.
| -rw-r--r-- | plugins/check_radius.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/check_radius.c b/plugins/check_radius.c index 61d84fb8..c2c93eeb 100644 --- a/plugins/check_radius.c +++ b/plugins/check_radius.c | |||
| @@ -211,7 +211,7 @@ main (int argc, char **argv) | |||
| 211 | if (result == OK_RC) | 211 | if (result == OK_RC) |
| 212 | die (STATE_OK, _("Auth OK")); | 212 | die (STATE_OK, _("Auth OK")); |
| 213 | (void)snprintf(msg, sizeof(msg), _("Unexpected result code %d"), result); | 213 | (void)snprintf(msg, sizeof(msg), _("Unexpected result code %d"), result); |
| 214 | die (STATE_UNKNOWN, msg); | 214 | die (STATE_UNKNOWN, "%s", msg); |
| 215 | } | 215 | } |
| 216 | 216 | ||
| 217 | 217 | ||
