summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: bf8ce4d)
raw | patch | inline | side by side (parent: bf8ce4d)
author | Holger Weiss <hweiss@users.sourceforge.net> | |
Tue, 8 Jan 2008 01:40:21 +0000 (01:40 +0000) | ||
committer | Holger Weiss <hweiss@users.sourceforge.net> | |
Tue, 8 Jan 2008 01:40:21 +0000 (01:40 +0000) |
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1894 f882894a-f735-0410-b71e-b25c423dba1c
plugins-root/check_icmp.c | patch | blob | history |
index 1ddc7561947fa633e7d273eebd434f8d9a5afed3..700fe8b689516ab0ef0a75f083eaac54b899a418 100644 (file)
}
-static char *
+static const char *
get_icmp_error_msg(unsigned char icmp_type, unsigned char icmp_code)
{
- char *msg = "unreachable";
+ const char *msg = "unreachable";
if(debug > 1) printf("get_icmp_error_msg(%u, %u)\n", icmp_type, icmp_code);
switch(icmp_type) {
unsigned char pl;
double rta;
struct rta_host *host;
- char *status_string[] =
+ const char *status_string[] =
{"OK", "WARNING", "CRITICAL", "UNKNOWN", "DEPENDENT"};
int hosts_ok = 0;
int hosts_warn = 0;