PatchSet 7156 
Date: 2006/03/20 22:53:36
Author: robilad
Branch: HEAD
Tag: (none) 
Log:
small warning fix: security

2006-03-21  Dalibor Topic  <[EMAIL PROTECTED]>

* libraries/clib/security/digest.c (Java_org_kaffe_security_provider_SHA_Update)
(Java_org_kaffe_security_provider_SHA_Final): Added missing casts for bufBytes
to fix compiler warnings.

Members: 
        ChangeLog:1.4674->1.4675 
        libraries/clib/security/digest.c:1.10->1.11 

Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.4674 kaffe/ChangeLog:1.4675
--- kaffe/ChangeLog:1.4674      Mon Mar 20 22:10:12 2006
+++ kaffe/ChangeLog     Mon Mar 20 22:53:36 2006
@@ -1,3 +1,9 @@
+2006-03-21  Dalibor Topic  <[EMAIL PROTECTED]>
+
+       * libraries/clib/security/digest.c 
(Java_org_kaffe_security_provider_SHA_Update) 
+       (Java_org_kaffe_security_provider_SHA_Final): Added missing casts for 
bufBytes
+       to fix compiler warnings.
+
 2006-03-20  Dalibor Topic  <[EMAIL PROTECTED]>
 
        * kaffe/jvmpi/jvmpi_kaffe.c (jvmpiRequestEvent): Changed
Index: kaffe/libraries/clib/security/digest.c
diff -u kaffe/libraries/clib/security/digest.c:1.10 
kaffe/libraries/clib/security/digest.c:1.11
--- kaffe/libraries/clib/security/digest.c:1.10 Wed Oct 19 20:10:41 2005
+++ kaffe/libraries/clib/security/digest.c      Mon Mar 20 22:53:42 2006
@@ -465,7 +465,7 @@
        }
 
        /* Update with new data and release array data */
-       SHA1Update((SHA1_CTX *) ctxBytes, bufBytes + off, (unsigned)len);
+       SHA1Update((SHA1_CTX *) ctxBytes, (unsigned char *)(bufBytes + off), 
(unsigned)len);
        (*env)->ReleaseByteArrayElements(env, ctxArray, ctxBytes, 0);
        (*env)->ReleaseByteArrayElements(env, buf, bufBytes, JNI_ABORT);
 }
@@ -504,7 +504,7 @@
        }
 
        /* Finalize and release byte arrays */
-       SHA1Final(bufBytes + off, (SHA1_CTX *) ctxBytes);
+       SHA1Final((unsigned char*)(bufBytes + off), (SHA1_CTX *) ctxBytes);
        (*env)->ReleaseByteArrayElements(env, ctxArray, ctxBytes, 0);
        (*env)->ReleaseByteArrayElements(env, buf, bufBytes, JNI_ABORT);
 }

_______________________________________________
kaffe mailing list
[email protected]
http://kaffe.org/cgi-bin/mailman/listinfo/kaffe

Reply via email to