From 2a2f5ad8fa2a3ac00d74491b2013aaff7d0b7e1a Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Wed, 5 Dec 2001 08:48:53 +0000 Subject: [PATCH] minor cleanup --- libraries/liblutil/uuid.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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++; } -- 2.39.5