summaryrefslogtreecommitdiff
path: root/build/rpmfc.c
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2008-02-05 17:42:19 +0200
committerPanu Matilainen <pmatilai@redhat.com>2008-02-05 17:42:19 +0200
commitd718b12f5bf5b94c418b8235e45625cbccca6220 (patch)
tree18c6fe59a6b06b2b1092a1c2e6f67f8657f27cc6 /build/rpmfc.c
parent53ca9c775f5f3954f140f462d22bb28cde02c6cd (diff)
downloadlibrpm-tizen-d718b12f5bf5b94c418b8235e45625cbccca6220.tar.gz
librpm-tizen-d718b12f5bf5b94c418b8235e45625cbccca6220.tar.bz2
librpm-tizen-d718b12f5bf5b94c418b8235e45625cbccca6220.zip
Mass convert (back) to rpmTag as it's usable everywhere now
- cast away a few cases where the enum usage causes ridiculous amount of compiler warnings from unhandled switch-cases
Diffstat (limited to 'build/rpmfc.c')
-rw-r--r--build/rpmfc.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/build/rpmfc.c b/build/rpmfc.c
index 2c286caa9..1b4d7453d 100644
--- a/build/rpmfc.c
+++ b/build/rpmfc.c
@@ -301,11 +301,11 @@ static int rpmfcSaveArg(ARGV_t * argvp, const char * key)
static char * rpmfcFileDep(char * buf, int ix,
rpmds ds)
{
- rpm_tag_t tagN = rpmdsTagN(ds);
+ rpmTag tagN = rpmdsTagN(ds);
char deptype = 'X';
buf[0] = '\0';
- switch (tagN) {
+ switch ((rpm_tag_t) tagN) {
case RPMTAG_PROVIDENAME:
deptype = 'P';
break;
@@ -805,7 +805,7 @@ static int rpmfcELF(rpmfc fc)
struct stat sb, * st = &sb;
char * soname = NULL;
rpmds * depsp, ds;
- rpm_tag_t tagN;
+ rpmTag tagN;
int32_t dsContext;
char * t;
int xx;
@@ -1345,9 +1345,9 @@ typedef struct DepMsg_s * DepMsg_t;
struct DepMsg_s {
const char * msg;
const char * argv[4];
- rpm_tag_t ntag;
- rpm_tag_t vtag;
- rpm_tag_t ftag;
+ rpmTag ntag;
+ rpmTag vtag;
+ rpmTag ftag;
int mask;
int xor;
};
@@ -1457,7 +1457,7 @@ static int rpmfcGenerateDependsHelper(const rpmSpec spec, Package pkg, rpmfi fi)
appendLineStringBuf(sb_stdin, rpmfiFN(fi));
for (dm = DepMsgs; dm->msg != NULL; dm++) {
- rpm_tag_t tag;
+ rpmTag tag;
rpmsenseFlags tagflags;
char * s;
int xx;