diff options
author | mdodd <mdodd@FreeBSD.org> | 2003-03-26 02:54:56 +0000 |
---|---|---|
committer | mdodd <mdodd@FreeBSD.org> | 2003-03-26 02:54:56 +0000 |
commit | 0896fe2d51bcccab21781188788f300b065d0987 (patch) | |
tree | 6395fe103d4dc90dbc701e3f6b01c23c0bc7ae13 /sbin | |
parent | 6c8beacd7d6dee8c168aed49a8f7b876b0651ca1 (diff) | |
download | FreeBSD-src-0896fe2d51bcccab21781188788f300b065d0987.zip FreeBSD-src-0896fe2d51bcccab21781188788f300b065d0987.tar.gz |
Don't roll a private copy of basename().
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 c5a248b..de0811c 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 * |