diff options
author | obrien <obrien@FreeBSD.org> | 2001-07-24 14:06:19 +0000 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 2001-07-24 14:06:19 +0000 |
commit | 9032757ec8b632bf62151d42b7016465752f99c3 (patch) | |
tree | 82606876fbef64ad3b1d8079a88e52aa5702059d /usr.bin/ranlib/misc.c | |
parent | 6dc73139c0963b16a0a8642e6399a5433348138e (diff) | |
download | FreeBSD-src-9032757ec8b632bf62151d42b7016465752f99c3.zip FreeBSD-src-9032757ec8b632bf62151d42b7016465752f99c3.tar.gz |
Expand emalloc in-place, and remove the `rname' basename() implimenation.
Diffstat (limited to 'usr.bin/ranlib/misc.c')
-rw-r--r-- | usr.bin/ranlib/misc.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/usr.bin/ranlib/misc.c b/usr.bin/ranlib/misc.c index 19b4854..85a5f8c 100644 --- a/usr.bin/ranlib/misc.c +++ b/usr.bin/ranlib/misc.c @@ -79,26 +79,6 @@ tmp(void) return(fd); } -void * -emalloc(len) - int len; -{ - void *p; - - if ((p = malloc((u_int)len)) == NULL) - error(archive); - return(p); -} - -char * -rname(path) - char *path; -{ - register char *ind; - - return((ind = rindex(path, '/')) ? ind + 1 : path); -} - void badfmt(void) { |