aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--plugins/check_procs.c2
-rw-r--r--plugins/check_swap.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/plugins/check_procs.c b/plugins/check_procs.c
index dbd07aa4..3f40e087 100644
--- a/plugins/check_procs.c
+++ b/plugins/check_procs.c
@@ -96,7 +96,9 @@ main (int argc, char **argv)
char procstat[8];
char procetime[MAX_INPUT_BUFFER] = { '\0' };
char *procargs;
+#ifdef HAVE_BASENAME
char *temp_string;
+#endif
const char *zombie = "Z";
diff --git a/plugins/check_swap.c b/plugins/check_swap.c
index a3f4df44..aeeb9ba0 100644
--- a/plugins/check_swap.c
+++ b/plugins/check_swap.c
@@ -55,7 +55,6 @@ main (int argc, char **argv)
float dsktotal = 0, dskused = 0, dskfree = 0, tmp = 0;
int result = STATE_UNKNOWN;
char input_buffer[MAX_INPUT_BUFFER];
- char *perf;
#ifdef HAVE_PROC_MEMINFO
FILE *fp;
#else
@@ -86,7 +85,6 @@ main (int argc, char **argv)
textdomain (PACKAGE);
status = strdup ("");
- perf = strdup ("");
if (process_arguments (argc, argv) == ERROR)
usage4 (_("Could not parse arguments"));