FreeBSD/contrib/subversion/subversion/libsvn_subr/checksum.c
/* Check to see if KIND is something we recognize.  If not, return
 * SVN_ERR_BAD_CHECKSUM_KIND */
Check to see if KIND is something we recognize.  If not, return
SVN_ERR_BAD_CHECKSUM_KIND
Check to see if KIND is something we recognize . If not return SVN_ERR_BAD_CHECKSUM_KIND
static svn_error_t *
validate_kind(svn_checksum_kind_t kind)
{
  if (kind >= svn_checksum_md5 && kind <= svn_checksum_fnv1a_32x4)
    return SVN_NO_ERROR;
  else
    return svn_error_create(SVN_ERR_BAD_CHECKSUM_KIND, NULL, NULL);
}
static svn_error_t * validate_kind ( svn_checksum_kind_t kind ) { if ( kind >= svn_checksum_md5 && kind <= svn_checksum_fnv1a_32x4 ) return SVN_NO_ERROR ; else return svn_error_create ( SVN_ERR_BAD_CHECKSUM_KIND , NULL , NULL ) ; }
Check to see if KIND is something we recognize.
Check to see if KIND is something we recognize .