From ada7878ba0d097b798277aaa095e9d935a64fa99 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Thu, 18 Mar 2004 11:28:51 +0000 Subject: Based on a patch from Alexandre Oliva, remove all reference to 'bzero' (which is not a SuSv3 symbol). Rather than using __bzero internally per Alexandre's original patch, use memset instead. --- libutil/logout.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libutil') diff --git a/libutil/logout.c b/libutil/logout.c index 082579b8f..cf964e4dd 100644 --- a/libutil/logout.c +++ b/libutil/logout.c @@ -45,9 +45,9 @@ logout (const char *line) if( (ut = getutline(&tmp)) ) { /* Clear information about who & from where. */ - bzero (ut->ut_name, sizeof ut->ut_name); + memset (ut->ut_name, 0, sizeof ut->ut_name); #if _HAVE_UT_HOST - 0 - bzero (ut->ut_host, sizeof ut->ut_host); + memset (ut->ut_host, 0, sizeof ut->ut_host); #endif #if _HAVE_UT_TV - 0 gettimeofday (&ut->ut_tv, NULL); -- cgit v1.2.3