summaryrefslogtreecommitdiffstats
path: root/plugins-root
diff options
context:
space:
mode:
authorRincewindsHat <12514511+RincewindsHat@users.noreply.github.com>2023-10-06 15:19:33 +0200
committerRincewindsHat <12514511+RincewindsHat@users.noreply.github.com>2023-10-06 15:19:33 +0200
commitd54588eaf0fc1ec35cfac988dbb2764069fbc909 (patch)
tree53c86de857d72af738132834318c7d5b410d64d4 /plugins-root
parent6d7d9a87aa74f00ed5603e13ebf96bb2b72e084a (diff)
downloadmonitoring-plugins-d54588eaf0fc1ec35cfac988dbb2764069fbc909.tar.gz
Update comment
Diffstat (limited to 'plugins-root')
-rw-r--r--plugins-root/check_icmp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins-root/check_icmp.c b/plugins-root/check_icmp.c
index 79b93571..541e7955 100644
--- a/plugins-root/check_icmp.c
+++ b/plugins-root/check_icmp.c
@@ -43,7 +43,7 @@ const char *copyright = "2005-2008";
43const char *email = "devel@monitoring-plugins.org"; 43const char *email = "devel@monitoring-plugins.org";
44 44
45/** Monitoring Plugins basic includes */ 45/** Monitoring Plugins basic includes */
46#include "common.h" 46#include "../plugins/common.h"
47#include "netutils.h" 47#include "netutils.h"
48#include "utils.h" 48#include "utils.h"
49 49
@@ -1851,10 +1851,10 @@ get_threshold2(char *str, size_t length, threshold *warn, threshold *crit, thres
1851 char *p = NULL; 1851 char *p = NULL;
1852 bool first_iteration = true; 1852 bool first_iteration = true;
1853 1853
1854 // pointer magic slims code by 10 lines. i is bof-stop on stupid libc's
1855 // p points to the last char in str 1854 // p points to the last char in str
1856 p = &str[length - 1]; 1855 p = &str[length - 1];
1857 1856
1857 // first_iteration is bof-stop on stupid libc's
1858 while(p != &str[0]) { 1858 while(p != &str[0]) {
1859 if( (*p == 'm') || (*p == '%') ) { 1859 if( (*p == 'm') || (*p == '%') ) {
1860 *p = '\0'; 1860 *p = '\0';