projects
/
tools
/
librpm-tizen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4a68092
)
rpmfiNew() doesn't use old hge() anymore
author
Panu Matilainen
<pmatilai@redhat.com>
Thu, 12 Jun 2008 12:31:27 +0000
(15:31 +0300)
committer
Panu Matilainen
<pmatilai@redhat.com>
Thu, 12 Jun 2008 12:31:27 +0000
(15:31 +0300)
lib/rpmfi.c
patch
|
blob
|
history
diff --git
a/lib/rpmfi.c
b/lib/rpmfi.c
index
d5a9039
..
93e408e
100644
(file)
--- a/
lib/rpmfi.c
+++ b/
lib/rpmfi.c
@@
-1174,8
+1174,6
@@
fprintf(stderr, "*** fi %p\t%s[%d]\n", fi, fi->Type, fi->fc);
rpmfi rpmfiNew(const rpmts ts, Header h, rpmTag tagN, int scareMem)
{
- HGE_t hge =
- (scareMem ? (HGE_t) headerGetEntryMinMemory : (HGE_t) headerGetEntry);
rpmte p;
rpmfi fi = NULL;
const char * Type;
@@
-1205,7
+1203,7
@@
rpmfi rpmfiNew(const rpmts ts, Header h, rpmTag tagN, int scareMem)
fi->i = -1;
fi->tagN = tagN;
- fi->hge =
hge
;
+ fi->hge =
(HGE_t) (scareMem ? headerGetEntryMinMemory : headerGetEntry)
;
fi->hae = (HAE_t) headerAddEntry;
fi->hme = (HME_t) headerModifyEntry;
fi->hre = (HRE_t) headerRemoveEntry;