[Nagiosplug-checkins] nagiosplug/plugins check_procs.c,1.45,1.46 check_swap.c,1.51,1.52

Ton Voon tonvoon at users.sourceforge.net
Thu Sep 15 01:29:02 CEST 2005


Update of /cvsroot/nagiosplug/nagiosplug/plugins
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30500

Modified Files:
	check_procs.c check_swap.c 
Log Message:
- Cleanup minor compile errors on Irix


Index: check_procs.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_procs.c,v
retrieving revision 1.45
retrieving revision 1.46
diff -u -d -r1.45 -r1.46
--- check_procs.c	3 Jun 2005 13:53:43 -0000	1.45
+++ check_procs.c	15 Sep 2005 08:27:58 -0000	1.46
@@ -96,7 +96,9 @@
 	char procstat[8];
 	char procetime[MAX_INPUT_BUFFER] = { '\0' };
 	char *procargs;
+#ifdef HAVE_BASENAME
 	char *temp_string;
+#endif
 
 	const char *zombie = "Z";
 

Index: check_swap.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_swap.c,v
retrieving revision 1.51
retrieving revision 1.52
diff -u -d -r1.51 -r1.52
--- check_swap.c	6 Jul 2005 22:10:04 -0000	1.51
+++ check_swap.c	15 Sep 2005 08:27:58 -0000	1.52
@@ -55,7 +55,6 @@
 	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 @@
 	textdomain (PACKAGE);
 
 	status = strdup ("");
-	perf = strdup ("");
 
 	if (process_arguments (argc, argv) == ERROR)
 		usage4 (_("Could not parse arguments"));





More information about the Commits mailing list