You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by mi...@apache.org on 2011/06/09 00:40:38 UTC
svn commit: r1133591 - in /apr/apr-util/branches/1.4.x: crypto/apr_crypto.c
include/apr_crypto.h test/testcrypto.c
Author: minfrin
Date: Wed Jun 8 22:40:37 2011
New Revision: 1133591
URL: http://svn.apache.org/viewvc?rev=1133591&view=rev
Log:
Backport: apr_crypto: Remove an unused parameter from the apr_crypto_init()
function.
Modified:
apr/apr-util/branches/1.4.x/crypto/apr_crypto.c
apr/apr-util/branches/1.4.x/include/apr_crypto.h
apr/apr-util/branches/1.4.x/test/testcrypto.c
Modified: apr/apr-util/branches/1.4.x/crypto/apr_crypto.c
URL: http://svn.apache.org/viewvc/apr/apr-util/branches/1.4.x/crypto/apr_crypto.c?rev=1133591&r1=1133590&r2=1133591&view=diff
==============================================================================
--- apr/apr-util/branches/1.4.x/crypto/apr_crypto.c (original)
+++ apr/apr-util/branches/1.4.x/crypto/apr_crypto.c Wed Jun 8 22:40:37 2011
@@ -83,8 +83,7 @@ static apr_status_t apr_crypto_term(void
return APR_SUCCESS;
}
-APU_DECLARE(apr_status_t) apr_crypto_init(apr_pool_t *pool,
- const apr_array_header_t *params) {
+APU_DECLARE(apr_status_t) apr_crypto_init(apr_pool_t *pool) {
apr_status_t ret = APR_SUCCESS;
apr_pool_t *parent;
Modified: apr/apr-util/branches/1.4.x/include/apr_crypto.h
URL: http://svn.apache.org/viewvc/apr/apr-util/branches/1.4.x/include/apr_crypto.h?rev=1133591&r1=1133590&r2=1133591&view=diff
==============================================================================
--- apr/apr-util/branches/1.4.x/include/apr_crypto.h (original)
+++ apr/apr-util/branches/1.4.x/include/apr_crypto.h Wed Jun 8 22:40:37 2011
@@ -186,11 +186,9 @@ typedef struct apr_crypto_block_t apr_cr
* @brief Perform once-only initialisation. Call once only.
*
* @param pool - pool to register any shutdown cleanups, etc
- * @param params - array of initialisation parameters
* @return APR_NOTIMPL in case of no crypto support.
*/
-APU_DECLARE(apr_status_t) apr_crypto_init(apr_pool_t *pool,
- const apr_array_header_t *params);
+APU_DECLARE(apr_status_t) apr_crypto_init(apr_pool_t *pool);
/**
* @brief Get the driver struct for a name
Modified: apr/apr-util/branches/1.4.x/test/testcrypto.c
URL: http://svn.apache.org/viewvc/apr/apr-util/branches/1.4.x/test/testcrypto.c?rev=1133591&r1=1133590&r2=1133591&view=diff
==============================================================================
--- apr/apr-util/branches/1.4.x/test/testcrypto.c (original)
+++ apr/apr-util/branches/1.4.x/test/testcrypto.c Wed Jun 8 22:40:37 2011
@@ -35,7 +35,7 @@ static const apr_crypto_driver_t *get_dr
const apu_err_t *err = NULL;
apr_status_t rv;
- rv = apr_crypto_init(pool, params);
+ rv = apr_crypto_init(pool);
ABTS_ASSERT(tc, "failed to init apr_crypto", rv == APR_SUCCESS);
rv = apr_crypto_get_driver(&driver, name, params, &err, pool);
@@ -358,7 +358,7 @@ static void test_crypto_init(abts_case *
apr_pool_create(&pool, NULL);
- rv = apr_crypto_init(pool, NULL);
+ rv = apr_crypto_init(pool);
ABTS_ASSERT(tc, "failed to init apr_crypto", rv == APR_SUCCESS);
apr_pool_destroy(pool);