You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by pq...@apache.org on 2004/11/23 00:24:53 UTC

svn commit: r106236 - /apr/apr/trunk/misc/unix/rand.c

Author: pquerna
Date: Mon Nov 22 15:24:51 2004
New Revision: 106236

Modified:
   apr/apr/trunk/misc/unix/rand.c
Log:
Fix style and remove casts for the new apr_os_uuid_get() interfaces.


Modified: apr/apr/trunk/misc/unix/rand.c
Url: http://svn.apache.org/viewcvs/apr/apr/trunk/misc/unix/rand.c?view=diff&rev=106236&p1=apr/apr/trunk/misc/unix/rand.c&r1=106235&p2=apr/apr/trunk/misc/unix/rand.c&r2=106236
==============================================================================
--- apr/apr/trunk/misc/unix/rand.c	(original)
+++ apr/apr/trunk/misc/unix/rand.c	Mon Nov 22 15:24:51 2004
@@ -49,7 +49,7 @@
 
     uuid_create(&g, NULL);
 
-    memcpy( (void*)uuid_data, (const void *)&g, sizeof( uuid_t ) );
+    memcpy(uuid_data, &g, sizeof(uuid_t));
 
     return APR_SUCCESS;
 }
@@ -64,7 +64,7 @@
 
     uuid_generate(g);
 
-    memcpy((void*)uuid_data, (const void *)g, sizeof( uuid_t ) );
+    memcpy(uuid_data, g, sizeof(uuid_t));
 
     return APR_SUCCESS;
 }