summaryrefslogtreecommitdiff
path: root/libutil
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2004-03-18 11:28:51 +0000
committerEric Andersen <andersen@codepoet.org>2004-03-18 11:28:51 +0000
commitada7878ba0d097b798277aaa095e9d935a64fa99 (patch)
tree1d202eb0bb53ff5167d8ab91ac90e48034920438 /libutil
parent0c91a787b60e3a8804c1001724b039a0b80c7bb4 (diff)
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.
Diffstat (limited to 'libutil')
-rw-r--r--libutil/logout.c4
1 files changed, 2 insertions, 2 deletions
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);