From: Ton Voon Date: Thu, 15 Sep 2005 08:27:58 +0000 (+0000) Subject: - Cleanup minor compile errors on Irix X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=79e5b12d89bfcf97095e3e2ae02a5a3d1a361dd8;p=nagiosplug.git - Cleanup minor compile errors on Irix git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1222 f882894a-f735-0410-b71e-b25c423dba1c --- diff --git a/plugins/check_procs.c b/plugins/check_procs.c index dbd07aa..3f40e08 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 a3f4df4..aeeb9ba 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"));