You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by ju...@apache.org on 2012/11/23 19:32:29 UTC

svn commit: r1413017 - /subversion/trunk/subversion/tests/libsvn_fs/fs-test.c

Author: julianfoad
Date: Fri Nov 23 18:32:28 2012
New Revision: 1413017

URL: http://svn.apache.org/viewvc?rev=1413017&view=rev
Log:
* subversion/tests/libsvn_fs/fs-test.c
  (my_rand): Rename the local variable 'rand', to avoid warnings about
shadowing the standard library function of that name.

Modified:
    subversion/trunk/subversion/tests/libsvn_fs/fs-test.c

Modified: subversion/trunk/subversion/tests/libsvn_fs/fs-test.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/tests/libsvn_fs/fs-test.c?rev=1413017&r1=1413016&r2=1413017&view=diff
==============================================================================
--- subversion/trunk/subversion/tests/libsvn_fs/fs-test.c (original)
+++ subversion/trunk/subversion/tests/libsvn_fs/fs-test.c Fri Nov 23 18:32:28 2012
@@ -3533,8 +3533,8 @@ static int my_rand(apr_uint64_t scalar, 
 {
   static const apr_uint32_t TEST_RAND_MAX = 0xffffffffUL;
   /* Assumes TEST_RAND_MAX+1 can be exactly represented in a double */
-  apr_uint32_t rand = svn_test_rand(seed);
-  return (int)(((double)rand
+  apr_uint32_t r = svn_test_rand(seed);
+  return (int)(((double)r
                 / ((double)TEST_RAND_MAX+1.0))
                * (double)scalar);
 }