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 --- misc-utils/whereis.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'misc-utils/whereis.c') diff --git a/misc-utils/whereis.c b/misc-utils/whereis.c index 71ee6835..931ff77b 100644 --- a/misc-utils/whereis.c +++ b/misc-utils/whereis.c @@ -325,14 +325,14 @@ findin(char *dir, char *cp) { char dirbuf[1024]; struct stat statbuf; - dd = index(dir, '*'); + dd = strchr(dir, '*'); if (!dd) goto noglob; l = strlen(dir); if (l < sizeof(dirbuf)) { /* refuse excessively long names */ strcpy (dirbuf, dir); - d = index(dirbuf, '*'); + d = strchr(dirbuf, '*'); *d = 0; dirp = opendir(dirbuf); if (dirp == NULL) -- cgit v1.2.3