aboutsummaryrefslogtreecommitdiff
path: root/plugins/check_ntp_peer.c
diff options
context:
space:
mode:
authorGravatar Thomas Guyot-Sionnest <dermoth@users.sourceforge.net> 2008-08-21 04:22:46 +0000
committerGravatar Thomas Guyot-Sionnest <dermoth@users.sourceforge.net> 2008-08-21 04:22:46 +0000
commitc532a4a05dd567990a80578040256ec95a710ae2 (patch)
tree507dd48b800fa20be5a153e643bbca392f337b59 /plugins/check_ntp_peer.c
parent49bc8237c09e3fc0963ec18cedc549cb5c7373df (diff)
downloadmonitoring-plugins-c532a4a05dd567990a80578040256ec95a710ae2.tar.gz
Misplaced comment
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@2037 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins/check_ntp_peer.c')
-rw-r--r--plugins/check_ntp_peer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/check_ntp_peer.c b/plugins/check_ntp_peer.c
index 73ba8990..6963fde5 100644
--- a/plugins/check_ntp_peer.c
+++ b/plugins/check_ntp_peer.c
@@ -183,10 +183,10 @@ char *extract_value(const char *varlist, const char *name){
char *tmp=NULL, *value=NULL;
int i;
- /* Strip any leading space */
-
while (1) {
+ /* Strip any leading space */
for (varlist; isspace(varlist[0]); varlist++);
+
if (strncmp(name, varlist, strlen(name)) == 0) {
varlist += strlen(name);
/* strip trailing spaces */