aboutsummaryrefslogtreecommitdiff
path: root/plugins/check_procs.c
diff options
context:
space:
mode:
authorGravatar Ton Voon <tonvoon@users.sourceforge.net> 2006-04-27 13:25:10 +0000
committerGravatar Ton Voon <tonvoon@users.sourceforge.net> 2006-04-27 13:25:10 +0000
commit34cb16d283298885b73f75146433a703e93c0d4f (patch)
treec1e7b1b0ff0ad3e59e4921dd5e65d4527cd23d3f /plugins/check_procs.c
parent37ebbab7fbd251c4c357459ff738847f5a5a4883 (diff)
downloadmonitoring-plugins-34cb16d283298885b73f75146433a703e93c0d4f.tar.gz
Internal version of basename if one not found in system
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1383 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins/check_procs.c')
-rw-r--r--plugins/check_procs.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/plugins/check_procs.c b/plugins/check_procs.c
index 01acc937..d05020b5 100644
--- a/plugins/check_procs.c
+++ b/plugins/check_procs.c
@@ -96,9 +96,6 @@ 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";
@@ -179,10 +176,7 @@ main (int argc, char **argv)
strip (procargs);
/* Some ps return full pathname for command. This removes path */
-#ifdef HAVE_BASENAME
- temp_string = strdup(procprog);
- procprog = basename(temp_string);
-#endif /* HAVE_BASENAME */
+ procprog = basename(procprog);
/* we need to convert the elapsed time to seconds */
procseconds = convert_to_seconds(procetime);