apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From minf...@apache.org
Subject svn commit: r597879 - /apr/apr-util/trunk/ssl/apr_ssl_openssl.c
Date Sat, 24 Nov 2007 16:49:49 GMT
Author: minfrin
Date: Sat Nov 24 08:49:45 2007
New Revision: 597879

URL: http://svn.apache.org/viewvc?rev=597879&view=rev
Log:
Remove unnecessary casts

Modified:
    apr/apr-util/trunk/ssl/apr_ssl_openssl.c

Modified: apr/apr-util/trunk/ssl/apr_ssl_openssl.c
URL: http://svn.apache.org/viewvc/apr/apr-util/trunk/ssl/apr_ssl_openssl.c?rev=597879&r1=597878&r2=597879&view=diff
==============================================================================
--- apr/apr-util/trunk/ssl/apr_ssl_openssl.c (original)
+++ apr/apr-util/trunk/ssl/apr_ssl_openssl.c Sat Nov 24 08:49:45 2007
@@ -303,7 +303,7 @@
                                                  apr_evp_factory_type_e purpose,
                                                  apr_pool_t *pool)
 {
-    apr_evp_factory_t *f = (apr_evp_factory_t *)apr_pcalloc(pool, sizeof(apr_evp_factory_t));
+    apr_evp_factory_t *f = apr_pcalloc(pool, sizeof(apr_evp_factory_t));
     apu_evp_data_t *data;
     if (!f) {
         return APR_ENOMEM;
@@ -312,7 +312,7 @@
     f->pool = pool;
     f->purpose = purpose;
 
-    data = (apu_evp_data_t *)apr_pcalloc(pool, sizeof(apu_evp_data_t));
+    data = apr_pcalloc(pool, sizeof(apu_evp_data_t));
     if (!data) {
         return APR_ENOMEM;
     }
@@ -379,7 +379,7 @@
     apu_evp_data_t *data = f->evpData;
 
     if (!*e) {
-        *e = (apr_evp_crypt_t *)apr_pcalloc(p, sizeof(apr_evp_crypt_t));
+        *e = apr_pcalloc(p, sizeof(apr_evp_crypt_t));
     }
     if (!*e) {
         return APR_ENOMEM;
@@ -422,7 +422,7 @@
         }
         case APR_EVP_FACTORY_SYM: {
             if (!(*e)->cipherCtx) {
-                (*e)->cipherCtx = (EVP_CIPHER_CTX *)apr_pcalloc(p, sizeof(EVP_CIPHER_CTX));
+                (*e)->cipherCtx = apr_pcalloc(p, sizeof(EVP_CIPHER_CTX));
                 if (!(*e)->cipherCtx) {
                     return APR_ENOMEM;
                 }



Mime
View raw message