diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2008-04-07 12:11:16 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2008-04-07 12:19:58 +0300 |
commit | c29adcee80825d79e7b522ee651360d1b9542539 (patch) | |
tree | d9bed24a002962b62e511ea2fa93c6040cf3a657 /lib/rpmgi.c | |
parent | d728ec28dcb51a139859e4fed48da894a8363a51 (diff) | |
download | rpm-c29adcee80825d79e7b522ee651360d1b9542539.tar.gz rpm-c29adcee80825d79e7b522ee651360d1b9542539.tar.bz2 rpm-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 'lib/rpmgi.c')
-rw-r--r-- | lib/rpmgi.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/rpmgi.c b/lib/rpmgi.c index 0adddd14e..f4e144316 100644 --- a/lib/rpmgi.c +++ b/lib/rpmgi.c @@ -287,7 +287,7 @@ static rpmRC rpmgiWalkReadHeader(rpmgi gi) * @param argv arg list to be globbed (or NULL) * @returns RPMRC_OK on success */ -static rpmRC rpmgiGlobArgv(rpmgi gi, ARGV_t argv) +static rpmRC rpmgiGlobArgv(rpmgi gi, ARGV_const_t argv) { const char * arg; rpmRC rpmrc = RPMRC_OK; @@ -340,7 +340,7 @@ if (_rpmgi_debug < 0) fprintf(stderr, "*** gi %p\tmi %p\n", gi, gi->mi); if (gi->argv != NULL) - for (av = (const char **) gi->argv; *av != NULL; av++) { + for (av = gi->argv; *av != NULL; av++) { rpmTag tag = RPMTAG_NAME; const char * pat; char * a, * ae; @@ -665,7 +665,7 @@ rpmts rpmgiTs(rpmgi gi) return (gi != NULL ? gi->ts : NULL); } -rpmRC rpmgiSetArgs(rpmgi gi, ARGV_t argv, int ftsOpts, rpmgiFlags flags) +rpmRC rpmgiSetArgs(rpmgi gi, ARGV_const_t argv, int ftsOpts, rpmgiFlags flags) { gi->ftsOpts = ftsOpts; gi->flags = flags; |