summaryrefslogtreecommitdiff
path: root/lib/rpmte.c
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2009-03-09 14:48:47 +0200
committerPanu Matilainen <pmatilai@redhat.com>2009-03-09 14:48:47 +0200
commit2b4507d852ac8469608bef2ce8e219d76b0c543e (patch)
treef84c267d55aec8752ae5f199cc22392f610837d8 /lib/rpmte.c
parent1c1faec7a30099f62c12ccef2f15e37a202e6518 (diff)
downloadrpm-2b4507d852ac8469608bef2ce8e219d76b0c543e.tar.gz
rpm-2b4507d852ac8469608bef2ce8e219d76b0c543e.tar.bz2
rpm-2b4507d852ac8469608bef2ce8e219d76b0c543e.zip
Fix RPMTAG_FILESTATES in rpmdb
- sizeof(rpmfileState) != sizeof(char), and char is what goes to headers resulting in some pretty weird states despite being correct on disk - add rpm_fstate_t type for the header presentation of states and use where appropriate
Diffstat (limited to 'lib/rpmte.c')
-rw-r--r--lib/rpmte.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rpmte.c b/lib/rpmte.c
index 130c1d9a3..bda5411fc 100644
--- a/lib/rpmte.c
+++ b/lib/rpmte.c
@@ -988,7 +988,7 @@ rpmfileState rpmfsGetState(rpmfs fs, unsigned int ix)
return RPMFILE_STATE_MISSING;
}
-rpmfileState * rpmfsGetStates(rpmfs fs)
+rpm_fstate_t * rpmfsGetStates(rpmfs fs)
{
return fs->states;
}