diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2008-06-19 15:50:32 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2008-06-19 15:50:32 +0300 |
commit | c7d0e4ada36a40e6dd77a80f7db570a22f603862 (patch) | |
tree | 0bf8b18be176b42994ae7bc6ee6d27ed5a9a78e2 /lib/rpmdb.c | |
parent | 17cbd0f9725c3e08524b7a29c89b4574c9862710 (diff) | |
download | rpm-c7d0e4ada36a40e6dd77a80f7db570a22f603862.tar.gz rpm-c7d0e4ada36a40e6dd77a80f7db570a22f603862.tar.bz2 rpm-c7d0e4ada36a40e6dd77a80f7db570a22f603862.zip |
Use type-specific headerPut() for installtid stuff in rpmdbAdd()
Diffstat (limited to 'lib/rpmdb.c')
-rw-r--r-- | lib/rpmdb.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/rpmdb.c b/lib/rpmdb.c index c4299e256..7daa7a005 100644 --- a/lib/rpmdb.c +++ b/lib/rpmdb.c @@ -2650,10 +2650,8 @@ int rpmdbAdd(rpmdb db, int iid, Header h, #endif if (iid != 0 && iid != -1) { rpm_tid_t tid = iid; - struct rpmtd_s td; if (!headerIsEntry(h, RPMTAG_INSTALLTID)) - if (rpmtdFromUint32(&td, RPMTAG_INSTALLTID, &tid, 1)) - headerPut(h, &td, HEADERPUT_DEFAULT); + headerPutUint32(h, RPMTAG_INSTALLTID, &tid, 1); } (void) blockSignals(&signalMask); |