diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2007-09-21 13:09:18 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2007-09-21 13:09:18 +0300 |
commit | cd5956633eeaf6b27f026726991a9a20d28ad7ee (patch) | |
tree | 16fbf2e8f70be229aaae572ba2b9c9da86a0a506 | |
parent | 1517b852b4ea8baca9d64f3d956f0fee5d0d93dc (diff) | |
download | librpm-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.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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); |