diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2008-10-29 14:09:27 +0200 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2008-10-30 13:47:40 +0200 |
commit | f01ed5459deb3b3cf5c1bd4077f89b02533071f0 (patch) | |
tree | 92cd2066c28a8e03e5917c1a71867f43d3ab9f8e /lib/tagexts.c | |
parent | 8f41e940abe6950c807f530468adeb24049271ca (diff) | |
download | librpm-tizen-f01ed5459deb3b3cf5c1bd4077f89b02533071f0.tar.gz librpm-tizen-f01ed5459deb3b3cf5c1bd4077f89b02533071f0.tar.bz2 librpm-tizen-f01ed5459deb3b3cf5c1bd4077f89b02533071f0.zip |
Convert in-tree users of rpmfiNew() to use flag names
- easier to grep for than scareMem, preparing for further flags
Diffstat (limited to 'lib/tagexts.c')
-rw-r--r-- | lib/tagexts.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/tagexts.c b/lib/tagexts.c index 88ebf1991..44d8dfcf7 100644 --- a/lib/tagexts.c +++ b/lib/tagexts.c @@ -99,8 +99,7 @@ static void rpmfiBuildFNames(Header h, rpmTag tagN, static int filedepTag(Header h, rpmTag tagN, rpmtd td) { - int scareMem = 0; - rpmfi fi = rpmfiNew(NULL, h, RPMTAG_BASENAMES, scareMem); + rpmfi fi = rpmfiNew(NULL, h, RPMTAG_BASENAMES, RPMFI_NOHEADER); rpmds ds = NULL; char **fdeps = NULL; int numfiles; @@ -117,7 +116,7 @@ static int filedepTag(Header h, rpmTag tagN, rpmtd td) else if (tagN == RPMTAG_REQUIRENAME) deptype = 'R'; - ds = rpmdsNew(h, tagN, scareMem); + ds = rpmdsNew(h, tagN, 0); fdeps = xmalloc(numfiles * sizeof(*fdeps)); while ((fileix = rpmfiNext(fi)) >= 0) { @@ -404,8 +403,7 @@ static int origfilenamesTag(Header h, rpmtd td) */ static int fileclassTag(Header h, rpmtd td) { - int scareMem = 0; - rpmfi fi = rpmfiNew(NULL, h, RPMTAG_BASENAMES, scareMem); + rpmfi fi = rpmfiNew(NULL, h, RPMTAG_BASENAMES, RPMFI_NOHEADER); char **fclasses; int ix, numfiles; |