diff options
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/ranlib/extern.h | 3 | ||||
-rw-r--r-- | usr.bin/ranlib/misc.c | 12 |
2 files changed, 3 insertions, 12 deletions
diff --git a/usr.bin/ranlib/extern.h b/usr.bin/ranlib/extern.h index 1028ac07fbe..d5b4fa649e5 100644 --- a/usr.bin/ranlib/extern.h +++ b/usr.bin/ranlib/extern.h @@ -1,4 +1,4 @@ -/* $OpenBSD: extern.h,v 1.3 2003/06/03 02:56:14 millert Exp $ */ +/* $OpenBSD: extern.h,v 1.4 2008/01/02 16:35:22 chl Exp $ */ /*- * Copyright (c) 1990 The Regents of the University of California. @@ -34,7 +34,6 @@ extern int tmp(void); extern void *emalloc(size_t); extern void badfmt(void); extern void error(const char *); -extern const char *rname(const char *); extern char *tname; /* temporary file "name" */ /* touch.c */ diff --git a/usr.bin/ranlib/misc.c b/usr.bin/ranlib/misc.c index de30e3cf618..f9a72d0daf4 100644 --- a/usr.bin/ranlib/misc.c +++ b/usr.bin/ranlib/misc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: misc.c,v 1.8 2003/06/12 20:58:10 deraadt Exp $ */ +/* $OpenBSD: misc.c,v 1.9 2008/01/02 16:35:22 chl Exp $ */ /*- * Copyright (c) 1990 The Regents of the University of California. @@ -34,7 +34,7 @@ #ifndef lint /*static char sccsid[] = "from: @(#)misc.c 5.2 (Berkeley) 2/26/91";*/ -static char rcsid[] = "$OpenBSD: misc.c,v 1.8 2003/06/12 20:58:10 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: misc.c,v 1.9 2008/01/02 16:35:22 chl Exp $"; #endif /* not lint */ #include <sys/param.h> @@ -92,14 +92,6 @@ emalloc(size_t len) return(p); } -const char * -rname(const char *path) -{ - const char *ind; - - return((ind = strrchr(path, '/')) ? ind + 1 : path); -} - void badfmt(void) { |