diff options
author | Rolf Eike Beer <eike@sf-mail.de> | 2018-07-25 17:05:16 (GMT) |
---|---|---|
committer | Rolf Eike Beer <eike@sf-mail.de> | 2018-07-25 17:05:16 (GMT) |
commit | e60c6c04f04022a72bf3a1074402342e948c8c0f (patch) | |
tree | 7e9dd91ac8ddef44beeabfa2f39f0f1027ebebff /plugins/check_dns.c | |
parent | 9661ee74885834f7b69ab0874c4e65bed0b871c9 (diff) | |
download | monitoring-plugins-e60c6c04f04022a72bf3a1074402342e948c8c0f.tar.gz |
check_dns: simplify loop
Diffstat (limited to 'plugins/check_dns.c')
-rw-r--r-- | plugins/check_dns.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/check_dns.c b/plugins/check_dns.c index f206163..ae4123b 100644 --- a/plugins/check_dns.c +++ b/plugins/check_dns.c | |||
@@ -168,8 +168,8 @@ main (int argc, char **argv) | |||
168 | temp_buffer++; | 168 | temp_buffer++; |
169 | 169 | ||
170 | /* Strip leading spaces */ | 170 | /* Strip leading spaces */ |
171 | for (; *temp_buffer != '\0' && *temp_buffer == ' '; temp_buffer++) | 171 | while (*temp_buffer == ' ') |
172 | /* NOOP */; | 172 | temp_buffer++; |
173 | 173 | ||
174 | strip(temp_buffer); | 174 | strip(temp_buffer); |
175 | if (temp_buffer==NULL || strlen(temp_buffer)==0) { | 175 | if (temp_buffer==NULL || strlen(temp_buffer)==0) { |