From: Pierangelo Masarati Date: Wed, 5 Dec 2001 08:48:53 +0000 (+0000) Subject: minor cleanup X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~772 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=2a2f5ad8fa2a3ac00d74491b2013aaff7d0b7e1a;p=openldap minor cleanup --- diff --git a/libraries/liblutil/uuid.c b/libraries/liblutil/uuid.c index 8f741a607e..b0107460bb 100644 --- a/libraries/liblutil/uuid.c +++ b/libraries/liblutil/uuid.c @@ -36,6 +36,8 @@ # endif #endif +#include + /* 100 usec intervals from 10/10/1582 to 1/1/1970 */ #define UUID_TPLUS 0x01B21DD2138140LL @@ -82,7 +84,7 @@ lutil_eaddr( void ) sdl = (struct sockaddr_dl *)(ifm + 1); if ( sdl->sdl_family != AF_LINK || sdl->sdl_alen == 6 ) { - memcpy(eaddr, + AC_MEMCPY(eaddr, (unsigned char *)sdl->sdl_data + sdl->sdl_nlen, sizeof(eaddr)); free(buf); @@ -139,7 +141,7 @@ lutil_eaddr( void ) sdl = (struct sockaddr_dl *)sa; if ( sdl->sdl_alen == 6 ) { - memcpy(eaddr, + AC_MEMCPY(eaddr, (unsigned char *)sdl->sdl_data + sdl->sdl_nlen, sizeof(eaddr)); return eaddr; @@ -220,7 +222,7 @@ lutil_uuidstr( char *buf, size_t len ) static unsigned short seq; if (!inited) { - lutil_entropy( &seq, sizeof(seq) ); + lutil_entropy( (unsigned char *) &seq, sizeof(seq) ); inited++; }