goto exit;
}
- p = b;
+ p = (char *) b;
for (pe = p; p && *p; p = pe) {
pe = strchr(p, '\n');
if (pe)
rpmSetVerbosity(RPMLOG_NOTICE);
- optCon = poptGetContext(argv[0], argc, argv, optionsTable, 0);
+ optCon = poptGetContext(argv[0], argc, (const char **) argv, optionsTable, 0);
(void) poptReadConfigFile(optCon, LIBRPMALIAS_FILENAME);
#if RPM_USES_POPTREADDEFAULTCONFIG
(void) poptReadDefaultConfig(optCon, 1);
}
kval = key.data;
klen = key.size;
- printf("%3d %.*s\t%p[%d]\n", nrecs, klen, kval, data.data, data.size);
+ printf("%3d %.*s\t%p[%d]\n", nrecs, (int) klen, kval, data.data, data.size);
memset(&key, 0, sizeof(key));
memset(&data, 0, sizeof(data));
int
main(int argc, char *argv[])
{
- poptContext optCon = poptGetContext(argv[0], argc, argv, optionsTable, 0);
+ poptContext optCon = poptGetContext(argv[0], argc, (const char**) argv, optionsTable, 0);
int rc;
while ((rc = poptGetNextOpt(optCon)) > 0) {
int
main(int argc, char *argv[])
{
- poptContext optCon = poptGetContext(argv[0], argc, argv, optionsTable, 0);
+ poptContext optCon = poptGetContext(argv[0], argc, (const char **) argv, optionsTable, 0);
int rc;
while ((rc = poptGetNextOpt(optCon)) > 0) {
static void readFile(const char * path)
{
FD_t fd;
+ int xx;
fprintf(stderr, "===== %s\n", path);
fd = Fopen(path, "r.ufdio");
if (fd != NULL) {
char buf[BUFSIZ];
size_t len = Fread(buf, 1, sizeof(buf), fd);
- int xx = Fclose(fd);
+ xx = Fclose(fd);
if (len > 0)
fwrite(buf, 1, len, stderr);
int
main(int argc, char *argv[])
{
- poptContext optCon = poptGetContext(argv[0], argc, argv, optionsTable, 0);
+ poptContext optCon = poptGetContext(argv[0], argc, (const char **) argv, optionsTable, 0);
int rc;
while ((rc = poptGetNextOpt(optCon)) > 0) {
int
main(int argc, char *argv[])
{
- poptContext optCon = poptGetContext(argv[0], argc, argv, optionsTable, 0);
+ poptContext optCon = poptGetContext(argv[0], argc, (const char **) argv, optionsTable, 0);
int rc;
while ((rc = poptGetNextOpt(optCon)) > 0) {
int
main(int argc, char *argv[])
{
- poptContext optCon = poptGetContext(argv[0], argc, argv, optionsTable, 0);
+ poptContext optCon = poptGetContext(argv[0], argc, (const char **) argv, optionsTable, 0);
int rc;
while ((rc = poptGetNextOpt(optCon)) > 0) {
int
main(int argc, char *argv[])
{
- poptContext optCon = poptGetContext(argv[0], argc, argv, optionsTable, 0);
+ poptContext optCon = poptGetContext(argv[0], argc, (const char **) argv, optionsTable, 0);
int rc;
while ((rc = poptGetNextOpt(optCon)) > 0) {
}
if (type == RPM_STRING_ARRAY_TYPE || type == RPM_I18NSTRING_TYPE)
- free(vals);
+ _free(vals);
if (nvals)
- free(nvals);
+ _free(nvals);
}
headerFreeIterator(headerIter);
_depends_debug = 1;
- optCon = poptGetContext("rpmsort", argc, argv, optionsTable, 0);
+ optCon = poptGetContext("rpmsort", argc, (const char **) argv, optionsTable, 0);
#if RPM_USES_POPTREADDEFAULTCONFIG
poptReadDefaultConfig(optCon, 1);
#endif