summaryrefslogtreecommitdiff
path: root/rpmqv.c
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2008-04-07 12:11:16 +0300
committerPanu Matilainen <pmatilai@redhat.com>2008-04-07 12:19:58 +0300
commitc29adcee80825d79e7b522ee651360d1b9542539 (patch)
treed9bed24a002962b62e511ea2fa93c6040cf3a657 /rpmqv.c
parentd728ec28dcb51a139859e4fed48da894a8363a51 (diff)
downloadlibrpm-tizen-c29adcee80825d79e7b522ee651360d1b9542539.tar.gz
librpm-tizen-c29adcee80825d79e7b522ee651360d1b9542539.tar.bz2
librpm-tizen-c29adcee80825d79e7b522ee651360d1b9542539.zip
ARGV_t const pendantry
- const on typedef'ed ARGV_t doesn't mean a thing, add a new, (exec* compatible) ARGV_const_t and use where appropriate consistently in argv.h, rpmcli.h etc - popt's argv const is the wrong way around for exec() family, add explicit ARGV_t casts on popGetArgs() uses where needed - compiler silence, aaahh...
Diffstat (limited to 'rpmqv.c')
-rw-r--r--rpmqv.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/rpmqv.c b/rpmqv.c
index 4e54aae51..400b81687 100644
--- a/rpmqv.c
+++ b/rpmqv.c
@@ -714,7 +714,7 @@ int main(int argc, char *argv[])
if (!poptPeekArg(optCon)) {
argerror(_("no packages given for erase"));
} else {
- ec += rpmErase(ts, ia, (const char **) poptGetArgs(optCon));
+ ec += rpmErase(ts, ia, (ARGV_const_t) poptGetArgs(optCon));
}
break;
@@ -749,7 +749,7 @@ int main(int argc, char *argv[])
argerror(_("no packages given for install"));
} else {
/* FIX: ia->relocations[0].newPath undefined */
- ec += rpmInstall(ts, ia, (const char **)poptGetArgs(optCon));
+ ec += rpmInstall(ts, ia, (ARGV_t) poptGetArgs(optCon));
}
break;
@@ -762,7 +762,7 @@ int main(int argc, char *argv[])
argerror(_("no arguments given for query"));
qva->qva_specQuery = rpmspecQuery;
- ec = rpmcliQuery(ts, qva, (const char **) poptGetArgs(optCon));
+ ec = rpmcliQuery(ts, qva, (ARGV_const_t) poptGetArgs(optCon));
qva->qva_specQuery = NULL;
break;
@@ -775,7 +775,7 @@ int main(int argc, char *argv[])
if (!poptPeekArg(optCon)
&& !(qva->qva_source == RPMQV_ALL || qva->qva_source == RPMQV_HDLIST))
argerror(_("no arguments given for verify"));
- ec = rpmcliVerify(ts, qva, (const char **) poptGetArgs(optCon));
+ ec = rpmcliVerify(ts, qva, (ARGV_const_t) poptGetArgs(optCon));
} break;
#endif /* IAM_RPMQV */
@@ -791,7 +791,7 @@ int main(int argc, char *argv[])
if (!poptPeekArg(optCon))
argerror(_("no arguments given"));
ka->passPhrase = passPhrase;
- ec = rpmcliSign(ts, ka, (const char **)poptGetArgs(optCon));
+ ec = rpmcliSign(ts, ka, (ARGV_const_t) poptGetArgs(optCon));
break;
#endif /* IAM_RPMK */