summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2007-09-21 13:09:18 +0300
committerPanu Matilainen <pmatilai@redhat.com>2007-09-21 13:09:18 +0300
commitcd5956633eeaf6b27f026726991a9a20d28ad7ee (patch)
tree16fbf2e8f70be229aaae572ba2b9c9da86a0a506
parent1517b852b4ea8baca9d64f3d956f0fee5d0d93dc (diff)
downloadlibrpm-tizen-cd5956633eeaf6b27f026726991a9a20d28ad7ee.tar.gz
librpm-tizen-cd5956633eeaf6b27f026726991a9a20d28ad7ee.tar.bz2
librpm-tizen-cd5956633eeaf6b27f026726991a9a20d28ad7ee.zip
Silence compiler whining from bad popt argv definition
-rw-r--r--rpmqv.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/rpmqv.c b/rpmqv.c
index f750b4208..29b56e743 100644
--- a/rpmqv.c
+++ b/rpmqv.c
@@ -269,7 +269,8 @@ int main(int argc, char *argv[])
/* Make a first pass through the arguments, looking for --rcfile */
/* We need to handle that before dealing with the rest of the arguments. */
- optCon = poptGetContext(__progname, argc, argv, optionsTable, 0);
+ /* XXX popt argv definition should be fixed instead of casting... */
+ optCon = poptGetContext(__progname, argc, (const char **)argv, optionsTable, 0);
(void) poptReadConfigFile(optCon, LIBRPMALIAS_FILENAME);
#if RPM_USES_POPTREADDEFAULTCONFIG
(void) poptReadDefaultConfig(optCon, 1);