summaryrefslogtreecommitdiffstats
path: root/cpukit/libmisc/shell/main_rm.c
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2011-02-02 04:21:26 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2011-02-02 04:21:26 +0000
commit5b1f197948cc7701eff7ee686aaad0043ea0f7b3 (patch)
tree69f1353328849966d99237a8385da42b68ce9dc2 /cpukit/libmisc/shell/main_rm.c
parent2011-02-01 Joel Sherrill <joel.sherrill@oarcorp.com> (diff)
downloadrtems-5b1f197948cc7701eff7ee686aaad0043ea0f7b3.tar.bz2
2011-02-02 Ralf Corsépius <ralf.corsepius@rtems.org>
* libmisc/shell/hexdump-display.c: Eliminate bcopy, bzero, bcmp, index (Obsolete). * libmisc/shell/hexdump-parse.c: Eliminate index (Obsolete). * libmisc/shell/hexsyntax.c: Eliminate rindex (Obsolete). * libmisc/shell/main_hexdump.c: Eliminate rindex (Obsolete). * libmisc/shell/main_rm.c: Eliminate rindex (Obsolete).
Diffstat (limited to 'cpukit/libmisc/shell/main_rm.c')
-rw-r--r--cpukit/libmisc/shell/main_rm.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/cpukit/libmisc/shell/main_rm.c b/cpukit/libmisc/shell/main_rm.c
index fd237dd368..465a0daf46 100644
--- a/cpukit/libmisc/shell/main_rm.c
+++ b/cpukit/libmisc/shell/main_rm.c
@@ -65,11 +65,10 @@ __FBSDID("$FreeBSD: src/bin/rm/rm.c,v 1.58 2006/10/31 02:22:36 delphij Exp $");
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#ifdef HAVE_STRINGS_H
-#include <strings.h>
-#endif
#include <unistd.h>
+#define rindex(s,c) strrchr(s,c)
+
/* RTEMS specific changes */
typedef struct {
int dflag, eval, fflag, iflag, Pflag, vflag, Wflag, stdin_ok;