[systemd-commits] src/libudev src/udev
Kay Sievers
kay at kemper.freedesktop.org
Fri May 25 05:28:24 PDT 2012
src/libudev/libudev-monitor.c | 2 +-
src/udev/udev-builtin-input_id.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
New commits:
commit ee56538fa70d969c7374803cadfa1311d07d8b49
Author: Kay Sievers <kay at vrfy.org>
Date: Fri May 25 14:25:46 2012 +0200
udev: silent gcc warnings
diff --git a/src/libudev/libudev-monitor.c b/src/libudev/libudev-monitor.c
index 566e976..32319ac 100644
--- a/src/libudev/libudev-monitor.c
+++ b/src/libudev/libudev-monitor.c
@@ -578,7 +578,7 @@ retry:
nlh->magic, htonl(UDEV_MONITOR_MAGIC));
return NULL;
}
- if (nlh->properties_off+32 > buflen)
+ if (nlh->properties_off+32 > (size_t)buflen)
return NULL;
bufpos = nlh->properties_off;
} else {
diff --git a/src/udev/udev-builtin-input_id.c b/src/udev/udev-builtin-input_id.c
index fce10a3..ce696ee 100644
--- a/src/udev/udev-builtin-input_id.c
+++ b/src/udev/udev-builtin-input_id.c
@@ -159,7 +159,7 @@ static void test_key (struct udev_device *dev,
found = 0;
for (i = 0; i < BTN_MISC/BITS_PER_LONG; ++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 (!found) {
More information about the systemd-commits
mailing list