[PATCH 04/14] lscpu: avoid use of bzero() in favor of memset()

Sami Kerola
2014-07-13T20:25:14Z

The bzero() is marked as LEGACY in POSIX.1-2001.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
---
sys-utils/lscpu.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys-utils/lscpu.c b/sys-utils/lscpu.c
index b64c1f9..062dff5 100644
--- a/sys-utils/lscpu.c
+++ b/sys-utils/lscpu.c
@@ -690,7 +690,7 @@ is_vmware_platform(void)
if (sigsetjmp(segv_handler_env, 1))
return 0;

- bzero(&act, sizeof(act));
+ memset(&act, 0, sizeof(act));
act.sa_sigaction = segv_handler;
act.sa_flags = SA_SIGINFO;

--
2.0.1