diff options
author | Lorry Tar Creator <lorry-tar-importer@baserock.org> | 2015-03-18 13:33:26 +0000 |
---|---|---|
committer | <> | 2015-07-08 14:41:01 +0000 |
commit | bb0ef45f7c46b0ae221b26265ef98a768c33f820 (patch) | |
tree | 98bae10dde41c746c51ae97ec4f879e330415aa7 /subversion/libsvn_subr/compat.c | |
parent | 239dfafe71711b2f4c43d7b90a1228d7bdc5195e (diff) | |
download | subversion-tarball-subversion-1.8.13.tar.gz |
Imported from /home/lorry/working-area/delta_subversion-tarball/subversion-1.8.13.tar.gz.subversion-1.8.13
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; } } |