FreeBSD/contrib/subversion/subversion/libsvn_fs_fs/transaction.c
/* Set *DIGEST to the FNV checksum calculated in CONTEXT.
 * Use SCRATCH_POOL for temporary allocations.
 */
Set *DIGEST to the FNV checksum calculated in CONTEXT.
Use SCRATCH_POOL for temporary allocations.
Set * DIGEST to the FNV checksum calculated in CONTEXT . Use SCRATCH_POOL for temporary allocations .
static svn_error_t *
fnv1a_checksum_finalize(apr_uint32_t *digest,
                        svn_checksum_ctx_t *context,
                        apr_pool_t *scratch_pool)
{
  svn_checksum_t *checksum;
  SVN_ERR(svn_checksum_final(&checksum, context, scratch_pool));
  SVN_ERR_ASSERT(checksum->kind == svn_checksum_fnv1a_32x4);
  *digest = ntohl(*(const apr_uint32_t *)(checksum->digest));
  return SVN_NO_ERROR;
}
static svn_error_t * fnv1a_checksum_finalize ( apr_uint32_t * digest , svn_checksum_ctx_t * context , apr_pool_t * scratch_pool ) { svn_checksum_t * checksum ; SVN_ERR ( svn_checksum_final ( & checksum , context , scratch_pool ) ) ; SVN_ERR_ASSERT ( checksum -> kind == svn_checksum_fnv1a_32x4 ) ; * digest = ntohl ( * ( const apr_uint32_t * ) ( checksum -> digest ) ) ; return SVN_NO_ERROR ; }
Set *DIGEST to the FNV checksum calculated in CONTEXT.
Set * DIGEST to the FNV checksum calculated in CONTEXT .