// So there is guaranted that each loaded package has different
// checksum then another one.
g_debug("%s: Key \"%s\" is present multiple times. Ignoring "
- "all occurrences.", __func__, new_key);
- g_hash_table_insert(ignored_keys, g_strdup(new_key), NULL);
+ "all occurrences.", __func__, (gchar *) new_key);
+ g_hash_table_insert(ignored_keys, g_strdup((gchar *) new_key), NULL);
}
// Remove the package from the iterator anyway
g_hash_table_iter_remove(&iter);
goto compress_file_cleanup;
}
- if (fwrite(buf, 1, readed, new) != readed) {
+ if (fwrite(buf, 1, readed, new) != (size_t) readed) {
g_debug("%s: Error while copy %s -> %s (%s)",
__func__, src, dst, strerror(errno));
g_set_error(err, CR_MISC_ERROR, CRE_IO,
vsflags |= _RPMVSF_NOSIGNATURES;
vsflags |= RPMVSF_NOHDRCHK;
rpmtsSetVSFlags(cr_ts, vsflags);
+ return NULL;
}
void
rpmFreeMacros(NULL);
rpmFreeRpmrc();
+ return NULL;
}
void
{
int ret;
int free_content = 0;
- char *content;
+ unsigned char *content;
if (!orig_content) {
- content = (char *) orig_content;
- } else if (xmlCheckUTF8(orig_content) && !hascontrollchars(orig_content)) {
- content = (char *) orig_content;
+ content = (unsigned char *) orig_content;
+ } else if (xmlCheckUTF8((const unsigned char *) orig_content)
+ && !hascontrollchars((const unsigned char *) orig_content)) {
+ content = (unsigned char *) orig_content;
} else {
desctructor = SQLITE_TRANSIENT;
size_t llen = strlen((const char *) orig_content);
- content = malloc(sizeof(char)*llen*2 + 1);
- cr_latin1_to_utf8(orig_content, content);
+ content = malloc(sizeof(unsigned char)*llen*2 + 1);
+ cr_latin1_to_utf8((const unsigned char *) orig_content, content);
free_content = 1;
}
- ret = sqlite3_bind_text(stmt, i, content, len, desctructor);
+ ret = sqlite3_bind_text(stmt, i, (char *) content, len, desctructor);
if (free_content)
free(content);