[uClibc-cvs] uClibc/libutil logout.c,1.1,1.2

Erik Andersen andersen at uclibc.org
Thu Mar 18 11:28:53 UTC 2004


Update of /var/cvs/uClibc/libutil
In directory nail:/tmp/cvs-serv7711/libutil

Modified Files:
	logout.c 
Log Message:
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.


Index: logout.c
===================================================================
RCS file: /var/cvs/uClibc/libutil/logout.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- a/logout.c	8 May 2001 19:58:19 -0000	1.1
+++ b/logout.c	18 Mar 2004 11:28:50 -0000	1.2
@@ -45,9 +45,9 @@
   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);




More information about the uClibc-cvs mailing list