Silence compiler whining from bad popt argv definition

This commit is contained in:
Panu Matilainen 2007-09-21 13:09:18 +03:00
parent 1517b852b4
commit cd5956633e
1 changed files with 2 additions and 1 deletions

View File

@ -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);