diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2008-03-06 20:25:43 +0200 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2008-03-06 20:25:43 +0200 |
commit | ba16c1bf2fdd1d70b5c8fed1ba88d967f941aa50 (patch) | |
tree | cddf8891bc775c0cf39ee728b4a44d560d6268ba | |
parent | 82a6fac62cf4dbc9f131d80271fab01cc55fd700 (diff) | |
download | rpm-ba16c1bf2fdd1d70b5c8fed1ba88d967f941aa50.tar.gz rpm-ba16c1bf2fdd1d70b5c8fed1ba88d967f941aa50.tar.bz2 rpm-ba16c1bf2fdd1d70b5c8fed1ba88d967f941aa50.zip |
Make headerCopyTags() tag list const, the list isn't modified..
-rw-r--r-- | rpmdb/header.c | 5 | ||||
-rw-r--r-- | rpmdb/header.h | 3 |
2 files changed, 5 insertions, 3 deletions
diff --git a/rpmdb/header.c b/rpmdb/header.c index c69717af1..18b7aa828 100644 --- a/rpmdb/header.c +++ b/rpmdb/header.c @@ -3043,9 +3043,10 @@ const struct headerSprintfExtension_s headerDefaultFormats[] = { { HEADER_EXT_LAST, NULL, { NULL } } }; -void headerCopyTags(Header headerFrom, Header headerTo, rpmTag * tagstocopy) +void headerCopyTags(Header headerFrom, Header headerTo, + const rpmTag * tagstocopy) { - rpmTag * p; + const rpmTag * p; if (headerFrom == headerTo) return; diff --git a/rpmdb/header.h b/rpmdb/header.h index 25f80e494..1fead0144 100644 --- a/rpmdb/header.h +++ b/rpmdb/header.h @@ -419,7 +419,8 @@ char * headerSprintf(Header h, const char * fmt, * @param headerTo destination header * @param tagstocopy array of tags that are copied */ -void headerCopyTags(Header headerFrom, Header headerTo, rpmTag * tagstocopy); +void headerCopyTags(Header headerFrom, Header headerTo, + const rpmTag * tagstocopy); /** \ingroup header * Destroy header tag iterator. |