Silence compiler whining from bad popt argv definition
authorPanu Matilainen <pmatilai@redhat.com>
Fri, 21 Sep 2007 10:09:18 +0000 (13:09 +0300)
committerPanu Matilainen <pmatilai@redhat.com>
Fri, 21 Sep 2007 10:09:18 +0000 (13:09 +0300)
rpmqv.c

diff --git a/rpmqv.c b/rpmqv.c
index f750b42..29b56e7 100644 (file)
--- 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);