You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by jo...@apache.org on 2003/09/29 13:39:30 UTC
cvs commit: apr/include apr_general.h
jorton 2003/09/29 04:39:30
Modified: misc/unix rand.c
include apr_general.h
Log:
* misc/unix/rand.c, include/apr_general.h (apr_generate_random_bytes):
Use apr_size_t for length parameter.
Revision Changes Path
1.22 +0 -4 apr/misc/unix/rand.c
Index: rand.c
===================================================================
RCS file: /home/cvs/apr/misc/unix/rand.c,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -u -r1.21 -r1.22
--- rand.c 13 Jan 2003 18:23:09 -0000 1.21
+++ rand.c 29 Sep 2003 11:39:30 -0000 1.22
@@ -81,11 +81,7 @@
#if APR_HAS_RANDOM
APR_DECLARE(apr_status_t) apr_generate_random_bytes(unsigned char *buf,
-#ifdef APR_ENABLE_FOR_1_0
apr_size_t length)
-#else
- int length)
-#endif
{
#ifdef DEV_RANDOM
1.82 +1 -6 apr/include/apr_general.h
Index: apr_general.h
===================================================================
RCS file: /home/cvs/apr/include/apr_general.h,v
retrieving revision 1.81
retrieving revision 1.82
diff -u -u -r1.81 -r1.82
--- apr_general.h 3 Sep 2003 18:26:57 -0000 1.81
+++ apr_general.h 29 Sep 2003 11:39:30 -0000 1.82
@@ -261,15 +261,10 @@
/**
* Generate random bytes.
* @param buf Buffer to fill with random bytes
- * @param length Length of buffer in bytes (becomes apr_size_t in APR 1.0)
+ * @param length Length of buffer in bytes
*/
-#ifdef APR_ENABLE_FOR_1_0
APR_DECLARE(apr_status_t) apr_generate_random_bytes(unsigned char * buf,
apr_size_t length);
-#else
-APR_DECLARE(apr_status_t) apr_generate_random_bytes(unsigned char * buf,
- int length);
-#endif
#endif
/** @} */