Author: dumindu
Date: Tue Feb 26 10:03:07 2008
New Revision: 14239
Log:
Fixed a portability issue
Modified:
trunk/solutions/identity/modules/mod-cspace/session_sdbm.c
Modified: trunk/solutions/identity/modules/mod-cspace/session_sdbm.c
==============================================================================
--- trunk/solutions/identity/modules/mod-cspace/session_sdbm.c (original)
+++ trunk/solutions/identity/modules/mod-cspace/session_sdbm.c Tue Feb 26
10:03:07 2008
@@ -68,10 +68,10 @@
{
int i = 0;
size_t clen = strlen(ctable);
- int idx;
+ size_t idx;
for (i=0; i<idlen; i++) {
- idx = (int) (clen * (rand() / (RAND_MAX + 1.0)));
+ idx = (clen * (rand() / (RAND_MAX + 1.0)));
*(id + i) = *(ctable + idx);
}
*(id + idlen) = '\0';
_______________________________________________
Identity-dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/identity-dev