summaryrefslogtreecommitdiffstats
path: root/plugins/check_dig.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/check_dig.c')
-rw-r--r--plugins/check_dig.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/check_dig.c b/plugins/check_dig.c
index 57609acd..384b380b 100644
--- a/plugins/check_dig.c
+++ b/plugins/check_dig.c
@@ -98,7 +98,7 @@ main (int argc, char **argv)
98 98
99 while (fgets (input_buffer, MAX_INPUT_BUFFER - 1, child_stderr)) { 99 while (fgets (input_buffer, MAX_INPUT_BUFFER - 1, child_stderr)) {
100 /* If we get anything on STDERR, at least set warning */ 100 /* If we get anything on STDERR, at least set warning */
101 result = max (result, STATE_WARNING); 101 result = max_state (result, STATE_WARNING);
102 printf ("%s", input_buffer); 102 printf ("%s", input_buffer);
103 if (!strcmp (output, "")) 103 if (!strcmp (output, ""))
104 strcpy (output, 1 + index (input_buffer, ':')); 104 strcpy (output, 1 + index (input_buffer, ':'));
@@ -108,7 +108,7 @@ main (int argc, char **argv)
108 108
109 /* close the pipe */ 109 /* close the pipe */
110 if (spclose (child_process)) { 110 if (spclose (child_process)) {
111 result = max (result, STATE_WARNING); 111 result = max_state (result, STATE_WARNING);
112 if (!strcmp (output, "")) 112 if (!strcmp (output, ""))
113 strcpy (output, "nslookup returned error status"); 113 strcpy (output, "nslookup returned error status");
114 } 114 }