summaryrefslogtreecommitdiff
path: root/fdisk/cfdisk.c
diff options
context:
space:
mode:
authorDaniel Mierswa <impulze@impulze.org>2009-08-17 07:27:39 +0200
committerKarel Zak <kzak@redhat.com>2009-08-17 11:15:59 +0200
commitc0f19ccff73aa0ec5e9f3b61b932ea4a8bf4e6ed (patch)
tree6d4671545542031f67face36783f8ad64b29057c /fdisk/cfdisk.c
parentebeafc50f3d8125bd77d601a26351b3eba3bc259 (diff)
downloadutil-linux-old-c0f19ccff73aa0ec5e9f3b61b932ea4a8bf4e6ed.tar.gz
replace bcopy,bzero,index and rindex
Those 4 functions are marked as LEGACY in POSIX.1-2001 and removed in POSIX.1-2008. Replaced with memmove,memset,strchr and strrchr. Signed-off-by: Daniel Mierswa <impulze@impulze.org>
Diffstat (limited to 'fdisk/cfdisk.c')
-rw-r--r--fdisk/cfdisk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fdisk/cfdisk.c b/fdisk/cfdisk.c
index fc0357d2..1846e11c 100644
--- a/fdisk/cfdisk.c
+++ b/fdisk/cfdisk.c
@@ -357,7 +357,7 @@ xmalloc (size_t size) {
/* Some libc's have their own basename() */
static char *
my_basename(char *devname) {
- char *s = rindex(devname, '/');
+ char *s = strrchr(devname, '/');
return s ? s+1 : devname;
}