mirror of
https://github.com/monitoring-plugins/monitoring-plugins.git
synced 2026-05-28 04:35:40 -04:00
Convert tabs to spaces from dig's answer section (Randy O'Meara - 1107651)
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1108 f882894a-f735-0410-b71e-b25c423dba1c
This commit is contained in:
parent
9477122f43
commit
c9ce6037b5
1 changed files with 7 additions and 1 deletions
|
|
@ -54,6 +54,7 @@ main (int argc, char **argv)
|
|||
char input_buffer[MAX_INPUT_BUFFER];
|
||||
char *command_line;
|
||||
char *output;
|
||||
char *t;
|
||||
long microsec;
|
||||
double elapsed_time;
|
||||
int result = STATE_UNKNOWN;
|
||||
|
|
@ -124,6 +125,11 @@ main (int argc, char **argv)
|
|||
result = STATE_OK;
|
||||
}
|
||||
|
||||
/* Translate output TAB -> SPACE */
|
||||
t = output;
|
||||
while ((t = index(t, '\t')) != NULL)
|
||||
*t = ' ';
|
||||
|
||||
} while (!strstr (input_buffer, ";; "));
|
||||
|
||||
if (result == STATE_UNKNOWN) {
|
||||
|
|
@ -334,7 +340,7 @@ print_help (void)
|
|||
|
||||
printf (_("\
|
||||
-a, --expected_address=STRING\n\
|
||||
an address expected to be in the asnwer section.\n\
|
||||
an address expected to be in the answer section.\n\
|
||||
if not set, uses whatever was in -l\n"));
|
||||
|
||||
printf (_(UT_WARN_CRIT));
|
||||
|
|
|
|||
Loading…
Reference in a new issue