diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2008-01-30 12:42:07 +0200 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2008-01-30 12:42:07 +0200 |
commit | c482427fbfd604d665e7fd28d77cd58a22b089ae (patch) | |
tree | 4ac284cbbd6b73c527029e444a1327d7fad8707f | |
parent | 78f1f6378e3d18c1b46dc22125c6d3e0808f26af (diff) | |
download | rpm-c482427fbfd604d665e7fd28d77cd58a22b089ae.tar.gz rpm-c482427fbfd604d665e7fd28d77cd58a22b089ae.tar.bz2 rpm-c482427fbfd604d665e7fd28d77cd58a22b089ae.zip |
Uninline headerFreeData()
-rw-r--r-- | rpmdb/header.h | 13 | ||||
-rw-r--r-- | rpmdb/header_common.c | 11 |
2 files changed, 12 insertions, 12 deletions
diff --git a/rpmdb/header.h b/rpmdb/header.h index 4fbbf2df1..2ba12c2f7 100644 --- a/rpmdb/header.h +++ b/rpmdb/header.h @@ -569,18 +569,7 @@ int headerNextIterator(HeaderIterator hi, * @param type type of data (or RPM_FORCEFREE_TYPE to force free) * @return NULL always */ -static inline -void * headerFreeData(rpm_data_t data, rpm_tagtype_t type) -{ - if (data) { - if (type == RPM_FORCEFREE_TYPE || - type == RPM_STRING_ARRAY_TYPE || - type == RPM_I18NSTRING_TYPE || - type == RPM_BIN_TYPE) - free(data); /* XXX _constfree() */ - } - return NULL; -} +void * headerFreeData(rpm_data_t data, rpm_tagtype_t type); /** \ingroup header * Return name, version, release strings from header. diff --git a/rpmdb/header_common.c b/rpmdb/header_common.c index 5acaf14f3..c3686adad 100644 --- a/rpmdb/header_common.c +++ b/rpmdb/header_common.c @@ -191,3 +191,14 @@ int headerNextIterator(HeaderIterator hi, return hdrVec->hdrnextiter(hi, tag, type, p, c); } +void * headerFreeData(rpm_data_t data, rpm_tagtype_t type) +{ + if (data) { + if (type == RPM_FORCEFREE_TYPE || + type == RPM_STRING_ARRAY_TYPE || + type == RPM_I18NSTRING_TYPE || + type == RPM_BIN_TYPE) + free(data); /* XXX _constfree() */ + } + return NULL; +} |