From c0f19ccff73aa0ec5e9f3b61b932ea4a8bf4e6ed Mon Sep 17 00:00:00 2001 From: Daniel Mierswa Date: Mon, 17 Aug 2009 07:27:39 +0200 Subject: 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 --- fdisk/cfdisk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'fdisk/cfdisk.c') 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; } -- cgit v1.2.3