udev: silent gcc warnings
This commit is contained in:
parent
79849bf9f4
commit
ee56538fa7
|
@ -578,7 +578,7 @@ retry:
|
||||||
nlh->magic, htonl(UDEV_MONITOR_MAGIC));
|
nlh->magic, htonl(UDEV_MONITOR_MAGIC));
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
if (nlh->properties_off+32 > buflen)
|
if (nlh->properties_off+32 > (size_t)buflen)
|
||||||
return NULL;
|
return NULL;
|
||||||
bufpos = nlh->properties_off;
|
bufpos = nlh->properties_off;
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -159,7 +159,7 @@ static void test_key (struct udev_device *dev,
|
||||||
found = 0;
|
found = 0;
|
||||||
for (i = 0; i < BTN_MISC/BITS_PER_LONG; ++i) {
|
for (i = 0; i < BTN_MISC/BITS_PER_LONG; ++i) {
|
||||||
found |= bitmask_key[i];
|
found |= bitmask_key[i];
|
||||||
log_debug("test_key: checking bit block %lu for any keys; found=%i\n", i*BITS_PER_LONG, found > 0);
|
log_debug("test_key: checking bit block %lu for any keys; found=%i\n", (unsigned long)i*BITS_PER_LONG, found > 0);
|
||||||
}
|
}
|
||||||
/* If there are no keys in the lower block, check the higher block */
|
/* If there are no keys in the lower block, check the higher block */
|
||||||
if (!found) {
|
if (!found) {
|
||||||
|
|
Loading…
Reference in a new issue