FreeBSD/contrib/subversion/subversion/libsvn_fs_x/revprops.c
/* Return the textual representation of NUMBER and its checksum in *BUFFER.
 */
Return the textual representation of NUMBER and its checksum in *BUFFER.
Return the textual representation of NUMBER and its checksum in * BUFFER .
static svn_error_t *
checkedsummed_number(svn_stringbuf_t **buffer,
                     apr_int64_t number,
                     apr_pool_t *result_pool,
                     apr_pool_t *scratch_pool)
{
  svn_checksum_t *checksum;
  const char *digest;
  char str[SVN_INT64_BUFFER_SIZE];
  apr_size_t len = svn__i64toa(str, number);
  str[len] = 0;
  SVN_ERR(svn_checksum(&checksum, svn_checksum_md5, str, len, scratch_pool));
  digest = svn_checksum_to_cstring_display(checksum, scratch_pool);
  *buffer = svn_stringbuf_createf(result_pool, "%s %s\n", digest, str);
  return SVN_NO_ERROR;
}
static svn_error_t * checkedsummed_number ( svn_stringbuf_t * * buffer , apr_int64_t number , apr_pool_t * result_pool , apr_pool_t * scratch_pool ) { svn_checksum_t * checksum ; const char * digest ; char str [ SVN_INT64_BUFFER_SIZE ] ; apr_size_t len = svn__i64toa ( str , number ) ; str [ len ] = 0 ; SVN_ERR ( svn_checksum ( & checksum , svn_checksum_md5 , str , len , scratch_pool ) ) ; digest = svn_checksum_to_cstring_display ( checksum , scratch_pool ) ; * buffer = svn_stringbuf_createf ( result_pool , " \n " , digest , str ) ; return SVN_NO_ERROR ; }
Return the textual representation of NUMBER and its checksum in *BUFFER.
Return the textual representation of NUMBER and its checksum in * BUFFER .