diff options
| author | Matthew N. Dodd <mdodd@FreeBSD.org> | 2003-03-26 02:54:56 +0000 |
|---|---|---|
| committer | Matthew N. Dodd <mdodd@FreeBSD.org> | 2003-03-26 02:54:56 +0000 |
| commit | 6181d229c29b605c6c789bddc934af4355e56d53 (patch) | |
| tree | 6395fe103d4dc90dbc701e3f6b01c23c0bc7ae13 /sbin | |
| parent | 85785286b460b57930e4cce8c9655238248ba442 (diff) | |
Notes
Diffstat (limited to 'sbin')
| -rw-r--r-- | sbin/atm/ilmid/ilmid.c | 25 |
1 files changed, 1 insertions, 24 deletions
diff --git a/sbin/atm/ilmid/ilmid.c b/sbin/atm/ilmid/ilmid.c index c5a248b9319a8..de0811cd5af34 100644 --- a/sbin/atm/ilmid/ilmid.c +++ b/sbin/atm/ilmid/ilmid.c @@ -65,6 +65,7 @@ #include <err.h> #include <errno.h> #include <libatm.h> +#include <libgen.h> #include <stdio.h> #include <stdlib.h> #include <string.h> @@ -2081,30 +2082,6 @@ set_address ( hdr, intf ) send_resp ( intf, PDU_Header, Resp_Buf ); } -/* - * Utility to strip off any leading path information from a filename - * - * Arguments: - * path pathname to strip - * - * Returns: - * fname striped filename - * - */ -char * -basename ( path ) - char *path; -{ - char *fname; - - if ( ( fname = (char *)strrchr ( path, '/' ) ) != NULL ) - fname++; - else - fname = path; - - return ( fname ); -} - /* * Increment Debug Level * |
