diff options
author | Daniel Mierswa <impulze@impulze.org> | 2009-08-17 07:27:39 +0200 |
---|---|---|
committer | Karel Zak <kzak@redhat.com> | 2009-08-17 11:15:59 +0200 |
commit | c0f19ccff73aa0ec5e9f3b61b932ea4a8bf4e6ed (patch) | |
tree | 6d4671545542031f67face36783f8ad64b29057c /misc-utils/whereis.c | |
parent | ebeafc50f3d8125bd77d601a26351b3eba3bc259 (diff) | |
download | util-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 'misc-utils/whereis.c')
-rw-r--r-- | misc-utils/whereis.c | 4 |
1 files changed, 2 insertions, 2 deletions
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) |