summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 49bc823)
raw | patch | inline | side by side (parent: 49bc823)
author | Thomas Guyot-Sionnest <dermoth@users.sourceforge.net> | |
Thu, 21 Aug 2008 04:22:46 +0000 (04:22 +0000) | ||
committer | Thomas Guyot-Sionnest <dermoth@users.sourceforge.net> | |
Thu, 21 Aug 2008 04:22:46 +0000 (04:22 +0000) |
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@2037 f882894a-f735-0410-b71e-b25c423dba1c
plugins/check_ntp_peer.c | patch | blob | history |
index 73ba8990b64c33c6907c0de44c84b2d03eac3317..6963fde56fa7587ab4bb82e203b1a7a6ee29b6ab 100644 (file)
--- a/plugins/check_ntp_peer.c
+++ b/plugins/check_ntp_peer.c
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 */