Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP4:GA
device-mapper
device-mapper-gcc-warnings.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File device-mapper-gcc-warnings.patch of Package device-mapper
--- libdm/datastruct/hash.c | 6 +++--- libdm/ioctl/libdm-iface.c | 3 ++- 2 files changed, 5 insertions(+), 4 deletions(-) --- LVM2.2.02.98.orig/libdm/datastruct/hash.c +++ LVM2.2.02.98/libdm/datastruct/hash.c @@ -19,7 +19,7 @@ struct dm_hash_node { struct dm_hash_node *next; void *data; unsigned keylen; - char key[0]; + unsigned char key[0]; }; struct dm_hash_table { @@ -136,7 +136,7 @@ void dm_hash_destroy(struct dm_hash_tabl static struct dm_hash_node **_find(struct dm_hash_table *t, const void *key, uint32_t len) { - unsigned h = _hash(key, len) & (t->num_slots - 1); + unsigned h = _hash((unsigned char *)key, len) & (t->num_slots - 1); struct dm_hash_node **c; for (c = &t->slots[h]; *c; c = &((*c)->next)) { @@ -235,7 +235,7 @@ void dm_hash_wipe(struct dm_hash_table * char *dm_hash_get_key(struct dm_hash_table *t __attribute__((unused)), struct dm_hash_node *n) { - return n->key; + return (char *)n->key; } void *dm_hash_get_data(struct dm_hash_table *t __attribute__((unused)), --- LVM2.2.02.98.orig/libdm/ioctl/libdm-iface.c +++ LVM2.2.02.98/libdm/ioctl/libdm-iface.c @@ -1720,7 +1720,8 @@ static struct dm_ioctl *_do_dm_ioctl(str dmt->secure_data ? "W " : "", dmt->query_inactive_table ? "I " : "", dmt->enable_checks ? "C" : "", - dmt->sector, _sanitise_message(dmt->message), + (unsigned long long int)dmt->sector, + _sanitise_message(dmt->message), dmi->data_size, retry_repeat_count); #ifdef DM_IOCTLS if (ioctl(_control_fd, command, dmi) < 0 &&
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor