diff options
| author | RincewindsHat <12514511+RincewindsHat@users.noreply.github.com> | 2024-08-28 23:40:22 +0200 |
|---|---|---|
| committer | RincewindsHat <12514511+RincewindsHat@users.noreply.github.com> | 2024-08-28 23:40:22 +0200 |
| commit | 829ec76f00f33f7015936dcccca60661ca459252 (patch) | |
| tree | 754eb82c0709ad6f5e568efb5d8b3076a6e39150 | |
| parent | 04115904adc237dbb2a4224728b0f5a49d617703 (diff) | |
| download | monitoring-plugins-829ec76.tar.gz | |
check_ssh: Remove unused variable iteration
| -rw-r--r-- | plugins/check_ssh.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/plugins/check_ssh.c b/plugins/check_ssh.c index 3c1a594d..a3b5358c 100644 --- a/plugins/check_ssh.c +++ b/plugins/check_ssh.c | |||
| @@ -233,7 +233,6 @@ ssh_connect (char *haddr, int hport, char *remote_version, char *remote_protocol | |||
| 233 | 233 | ||
| 234 | char *output = (char *) calloc (BUFF_SZ + 1, sizeof(char)); | 234 | char *output = (char *) calloc (BUFF_SZ + 1, sizeof(char)); |
| 235 | 235 | ||
| 236 | unsigned int iteration = 0; | ||
| 237 | ssize_t byte_offset = 0; | 236 | ssize_t byte_offset = 0; |
| 238 | 237 | ||
| 239 | while ((version_control_string == NULL) && (recv_ret = recv(sd, output+byte_offset, BUFF_SZ - byte_offset, 0) > 0)) { | 238 | while ((version_control_string == NULL) && (recv_ret = recv(sd, output+byte_offset, BUFF_SZ - byte_offset, 0) > 0)) { |
