diff options
author | Holger Weiss <hweiss@users.sourceforge.net> | 2008-01-08 01:40:21 +0000 |
---|---|---|
committer | Holger Weiss <hweiss@users.sourceforge.net> | 2008-01-08 01:40:21 +0000 |
commit | aa215f26d9617c9c63f82ab690641fa99f1471b1 (patch) | |
tree | 789f9ccec051eb895e9568c2fc98ff1c6b58b4df | |
parent | bf8ce4d2a28dc692c8947103522e9ccd23c21c10 (diff) | |
download | monitoring-plugins-aa215f26d9617c9c63f82ab690641fa99f1471b1.tar.gz |
Mark some constant strings "const".
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1894 f882894a-f735-0410-b71e-b25c423dba1c
-rw-r--r-- | plugins-root/check_icmp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins-root/check_icmp.c b/plugins-root/check_icmp.c index 1ddc7561..700fe8b6 100644 --- a/plugins-root/check_icmp.c +++ b/plugins-root/check_icmp.c | |||
@@ -242,10 +242,10 @@ crash(const char *fmt, ...) | |||
242 | } | 242 | } |
243 | 243 | ||
244 | 244 | ||
245 | static char * | 245 | static const char * |
246 | get_icmp_error_msg(unsigned char icmp_type, unsigned char icmp_code) | 246 | get_icmp_error_msg(unsigned char icmp_type, unsigned char icmp_code) |
247 | { | 247 | { |
248 | char *msg = "unreachable"; | 248 | const char *msg = "unreachable"; |
249 | 249 | ||
250 | if(debug > 1) printf("get_icmp_error_msg(%u, %u)\n", icmp_type, icmp_code); | 250 | if(debug > 1) printf("get_icmp_error_msg(%u, %u)\n", icmp_type, icmp_code); |
251 | switch(icmp_type) { | 251 | switch(icmp_type) { |
@@ -897,7 +897,7 @@ finish(int sig) | |||
897 | unsigned char pl; | 897 | unsigned char pl; |
898 | double rta; | 898 | double rta; |
899 | struct rta_host *host; | 899 | struct rta_host *host; |
900 | char *status_string[] = | 900 | const char *status_string[] = |
901 | {"OK", "WARNING", "CRITICAL", "UNKNOWN", "DEPENDENT"}; | 901 | {"OK", "WARNING", "CRITICAL", "UNKNOWN", "DEPENDENT"}; |
902 | int hosts_ok = 0; | 902 | int hosts_ok = 0; |
903 | int hosts_warn = 0; | 903 | int hosts_warn = 0; |