diff options
Diffstat (limited to 'subversion/libsvn_subr/compat.c')
-rw-r--r-- | subversion/libsvn_subr/compat.c | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/subversion/libsvn_subr/compat.c b/subversion/libsvn_subr/compat.c index 8e2aff8..2089828 100644 --- a/subversion/libsvn_subr/compat.c +++ b/subversion/libsvn_subr/compat.c @@ -24,6 +24,7 @@ #include <apr_pools.h> #include <apr_strings.h> +#include "svn_hash.h" #include "svn_types.h" #include "svn_error.h" #include "svn_compat.h" @@ -75,12 +76,9 @@ svn_compat_log_revprops_clear(apr_hash_t *revprops) { if (revprops) { - apr_hash_set(revprops, SVN_PROP_REVISION_AUTHOR, - APR_HASH_KEY_STRING, NULL); - apr_hash_set(revprops, SVN_PROP_REVISION_DATE, - APR_HASH_KEY_STRING, NULL); - apr_hash_set(revprops, SVN_PROP_REVISION_LOG, - APR_HASH_KEY_STRING, NULL); + svn_hash_sets(revprops, SVN_PROP_REVISION_AUTHOR, NULL); + svn_hash_sets(revprops, SVN_PROP_REVISION_DATE, NULL); + svn_hash_sets(revprops, SVN_PROP_REVISION_LOG, NULL); } } @@ -105,14 +103,11 @@ svn_compat_log_revprops_out(const char **author, const char **date, *author = *date = *message = NULL; if (revprops) { - if ((author_s = apr_hash_get(revprops, SVN_PROP_REVISION_AUTHOR, - APR_HASH_KEY_STRING))) + if ((author_s = svn_hash_gets(revprops, SVN_PROP_REVISION_AUTHOR))) *author = author_s->data; - if ((date_s = apr_hash_get(revprops, SVN_PROP_REVISION_DATE, - APR_HASH_KEY_STRING))) + if ((date_s = svn_hash_gets(revprops, SVN_PROP_REVISION_DATE))) *date = date_s->data; - if ((message_s = apr_hash_get(revprops, SVN_PROP_REVISION_LOG, - APR_HASH_KEY_STRING))) + if ((message_s = svn_hash_gets(revprops, SVN_PROP_REVISION_LOG))) *message = message_s->data; } } |