FreeBSD/contrib/subversion/subversion/libsvn_repos/dump.c
/* Write to STREAM the header in HEADERS named KEY, if present.
 */
Write to STREAM the header in HEADERS named KEY, if present.
Write to STREAM the header in HEADERS named KEY if present .
static svn_error_t *
write_header(svn_stream_t *stream,
             apr_hash_t *headers,
             const char *key,
             apr_pool_t *scratch_pool)
{
  const char *val = svn_hash_gets(headers, key);
  if (val)
    {
      SVN_ERR(svn_stream_printf(stream, scratch_pool,
                                "%s: %s\n", key, val));
    }
  return SVN_NO_ERROR;
}
static svn_error_t * write_header ( svn_stream_t * stream , apr_hash_t * headers , const char * key , apr_pool_t * scratch_pool ) { const char * val = svn_hash_gets ( headers , key ) ; if ( val ) { SVN_ERR ( svn_stream_printf ( stream , scratch_pool , " \n " , key , val ) ) ; } return SVN_NO_ERROR ; }
Write to STREAM the header in HEADERS named KEY, if present.
Write to STREAM the header in HEADERS named KEY if present .