diff options
author | pquerna <pquerna@13f79535-47bb-0310-9956-ffa450edef68> | 2004-11-22 23:24:51 +0000 |
---|---|---|
committer | pquerna <pquerna@13f79535-47bb-0310-9956-ffa450edef68> | 2004-11-22 23:24:51 +0000 |
commit | 29c4ff7e1c78883f8a65aaec760ce7229b079469 (patch) | |
tree | d30d56306c9d645a0f173c05bb94bf0ba006902b /misc/unix | |
parent | 2ec247566ac0709aada90b7841641c6c555fab3c (diff) | |
download | libapr-29c4ff7e1c78883f8a65aaec760ce7229b079469.tar.gz |
Fix style and remove casts for the new apr_os_uuid_get() interfaces.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@106236 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'misc/unix')
-rw-r--r-- | misc/unix/rand.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/misc/unix/rand.c b/misc/unix/rand.c index 0bdd3722f..83398b9b5 100644 --- a/misc/unix/rand.c +++ b/misc/unix/rand.c @@ -49,7 +49,7 @@ APR_DECLARE(apr_status_t) apr_os_uuid_get(unsigned char *uuid_data) 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 @@ APR_DECLARE(apr_status_t) apr_os_uuid_get(unsigned char *uuid_data) uuid_generate(g); - memcpy((void*)uuid_data, (const void *)g, sizeof( uuid_t ) ); + memcpy(uuid_data, g, sizeof(uuid_t)); return APR_SUCCESS; } |