SF.net SVN: nagiosplug:[2037] nagiosplug/trunk/plugins/check_ntp_peer.c
| Newsgroups | gmane.network.nagios.plugins.cvs |
|---|---|
| Message-ID | <[email protected]> |
Revision: 2037
http://nagiosplug.svn.sourceforge.net/nagiosplug/?rev=2037&view=rev
Author: dermoth
Date: 2008-08-21 04:22:46 +0000 (Thu, 21 Aug 2008)
Log Message:
-----------
Misplaced comment
Modified Paths:
--------------
nagiosplug/trunk/plugins/check_ntp_peer.c
Modified: nagiosplug/trunk/plugins/check_ntp_peer.c
===================================================================
--- nagiosplug/trunk/plugins/check_ntp_peer.c 2008-08-21 04:17:35 UTC (rev 2036)
+++ nagiosplug/trunk/plugins/check_ntp_peer.c 2008-08-21 04:22:46 UTC (rev 2037)
@@ -183,10 +183,10 @@
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 */
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/