You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by wr...@apache.org on 2007/10/23 20:04:01 UTC

svn commit: r587577 - /apr/apr/branches/1.2.x/random/unix/apr_random.c

Author: wrowe
Date: Tue Oct 23 11:04:00 2007
New Revision: 587577

URL: http://svn.apache.org/viewvc?rev=587577&view=rev
Log:
Backport size type fields from trunk.

Modified:
    apr/apr/branches/1.2.x/random/unix/apr_random.c

Modified: apr/apr/branches/1.2.x/random/unix/apr_random.c
URL: http://svn.apache.org/viewvc/apr/apr/branches/1.2.x/random/unix/apr_random.c?rev=587577&r1=587576&r2=587577&view=diff
==============================================================================
--- apr/apr/branches/1.2.x/random/unix/apr_random.c (original)
+++ apr/apr/branches/1.2.x/random/unix/apr_random.c Tue Oct 23 11:04:00 2007
@@ -219,7 +219,7 @@
         p->pool[p->bytes++] = entropy[n];
 
         if (p->bytes == g->rehash_size) {
-            unsigned int r;
+            apr_size_t r;
 
             for (r = 0; r < p->bytes/2; r+=g->pool_hash->size)
                 hash(g->pool_hash,p->pool+r,p->pool+r*2,g->pool_hash->size*2);
@@ -246,7 +246,7 @@
     apr_size_t n;
 
     for (n = 0; n < bytes; ) {
-        int l;
+        apr_size_t l;
 
         if (g->random_bytes == 0) {
             apr_random_block(g,g->randomness);