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 /mount/sundries.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 'mount/sundries.c')
-rw-r--r-- | mount/sundries.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mount/sundries.c b/mount/sundries.c index 3980f81a..658eec52 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++; |