summaryrefslogtreecommitdiffstats
path: root/mount/sundries.c
diff options
context:
space:
mode:
authorDaniel Mierswa2009-08-17 07:27:39 +0200
committerKarel Zak2009-08-17 11:15:59 +0200
commitc0f19ccff73aa0ec5e9f3b61b932ea4a8bf4e6ed (patch)
tree6d4671545542031f67face36783f8ad64b29057c /mount/sundries.c
parentlibblkid: fix cache->probe memory leak (diff)
downloadkernel-qcow2-util-linux-c0f19ccff73aa0ec5e9f3b61b932ea4a8bf4e6ed.tar.gz
kernel-qcow2-util-linux-c0f19ccff73aa0ec5e9f3b61b932ea4a8bf4e6ed.tar.xz
kernel-qcow2-util-linux-c0f19ccff73aa0ec5e9f3b61b932ea4a8bf4e6ed.zip
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 'mount/sundries.c')
-rw-r--r--mount/sundries.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mount/sundries.c b/mount/sundries.c
index 3980f81ad..658eec52e 100644
--- a/mount/sundries.c
+++ b/mount/sundries.c
@@ -157,7 +157,7 @@ matching_type (const char *type, const char *types) {
if (strncmp(p, type, len) == 0 &&
(p[len] == 0 || p[len] == ','))
return !no;
- p = index(p,',');
+ p = strchr(p,',');
if (!p)
break;
p++;