mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 01:04:41 +01:00
kconfig: use memcmp instead of deprecated bcmp
bcmp() was removed in POSIX.1-2008. This commit replaces bcmp() with memcmp(). This allows Kconfig to link with C libraries that do not provide bcmp(), such as Android bionic libc. Signed-off-by: Thomas Meyer <thomas@m3y3r.de> Reviewed-by: Miguel Ojeda <ojeda@kernel.org> Reported-by: Abhigyan Ghosh <zscript.team.zs@gmail.com> [masahiro: update commit description] Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
This commit is contained in:
parent
e04c78d86a
commit
0a1eab129f
1 changed files with 1 additions and 1 deletions
|
|
@ -77,7 +77,7 @@ static bool is_same(const char *file1, const char *file2)
|
|||
if (map2 == MAP_FAILED)
|
||||
goto close2;
|
||||
|
||||
if (bcmp(map1, map2, st1.st_size))
|
||||
if (memcmp(map1, map2, st1.st_size))
|
||||
goto close2;
|
||||
|
||||
ret = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue