]> git.ipfire.org Git - thirdparty/dhcpcd.git/commit
compat/arc4random.c: use memset instead of explicit_bzero (#252)
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Mon, 16 Oct 2023 17:03:41 +0000 (19:03 +0200)
committerGitHub <noreply@github.com>
Mon, 16 Oct 2023 17:03:41 +0000 (18:03 +0100)
commit57070736a5d00c809e6a3777ab56745ef3e5bf0f
treeab6c23febce6cefa3c960183461a56ee89fe03db
parent52f1b730a8c25c2779fa01736575a494c3800d8c
compat/arc4random.c: use memset instead of explicit_bzero (#252)

Use memset instead of explicit_bzero to avoid the following build
failure with uclibc-ng since version 10.0.3 and
https://github.com/NetworkConfiguration/dhcpcd/commit/837d09e34c487edaa92aa2ae71a630d84c927f8e:

/home/fabrice/buildroot/output/host/lib/gcc/arm-buildroot-linux-uclibcgnueabi/12.3.0/../../../../arm-buildroot-linux-uclibcgnueabi/bin/ld: ../compat/arc4random.o: in function `_rs_stir_if_needed':
arc4random.c:(.text+0x8cc): undefined reference to `explicit_bzero'

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
compat/arc4random.c