diff options
author | Daniel Mierswa | 2009-08-17 07:27:39 +0200 |
---|---|---|
committer | Karel Zak | 2009-08-17 11:15:59 +0200 |
commit | c0f19ccff73aa0ec5e9f3b61b932ea4a8bf4e6ed (patch) | |
tree | 6d4671545542031f67face36783f8ad64b29057c /text-utils/ul.c | |
parent | libblkid: fix cache->probe memory leak (diff) | |
download | kernel-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 'text-utils/ul.c')
-rw-r--r-- | text-utils/ul.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/text-utils/ul.c b/text-utils/ul.c index 76c0a9703..a1491b846 100644 --- a/text-utils/ul.c +++ b/text-utils/ul.c @@ -42,7 +42,7 @@ #include <stdio.h> #include <unistd.h> /* for getopt(), isatty() */ -#include <string.h> /* for bzero(), strcpy() */ +#include <string.h> /* for memset(), strcpy() */ #include <term.h> /* for setupterm() */ #include <stdlib.h> /* for getenv() */ #include <limits.h> /* for INT_MAX */ |