[systemd-commits] src/libsystemd src/libsystemd-network
Thomas H.P. Andersen
phomes at kemper.freedesktop.org
Thu Mar 27 12:17:01 PDT 2014
src/libsystemd-network/network-internal.c | 2 +-
src/libsystemd-network/sd-dhcp-client.c | 2 +-
src/libsystemd/sd-event/sd-event.c | 2 ++
3 files changed, 4 insertions(+), 2 deletions(-)
New commits:
commit 9f2a50a3005a771a3b6cea2136b6a6c7e5686a0e
Author: Thomas Hindoe Paaboel Andersen <phomes at gmail.com>
Date: Thu Mar 27 20:13:11 2014 +0100
silence warnings
diff --git a/src/libsystemd-network/network-internal.c b/src/libsystemd-network/network-internal.c
index eed0fda..3686267 100644
--- a/src/libsystemd-network/network-internal.c
+++ b/src/libsystemd-network/network-internal.c
@@ -38,7 +38,7 @@
int net_get_unique_predictable_data(struct udev_device *device, uint8_t result[8]) {
size_t l, sz = 0;
- const char *name, *field = NULL;
+ const char *name = NULL, *field = NULL;
int r;
uint8_t *v;
diff --git a/src/libsystemd-network/sd-dhcp-client.c b/src/libsystemd-network/sd-dhcp-client.c
index 0be6212..06b2d1c 100644
--- a/src/libsystemd-network/sd-dhcp-client.c
+++ b/src/libsystemd-network/sd-dhcp-client.c
@@ -292,7 +292,7 @@ static int dhcp_client_send_raw(sd_dhcp_client *client, DHCPPacket *packet,
}
static int client_send_discover(sd_dhcp_client *client) {
- _cleanup_free_ DHCPPacket *discover;
+ _cleanup_free_ DHCPPacket *discover = NULL;
size_t optlen, len;
uint8_t *opt;
usec_t time_now;
diff --git a/src/libsystemd/sd-event/sd-event.c b/src/libsystemd/sd-event/sd-event.c
index 4aabec1..0ad6454 100644
--- a/src/libsystemd/sd-event/sd-event.c
+++ b/src/libsystemd/sd-event/sd-event.c
@@ -1983,6 +1983,8 @@ static int source_dispatch(sd_event_source *s) {
break;
case SOURCE_WATCHDOG:
+ case _SOUFCE_EVENT_SOURCE_TYPE_MAX:
+ case _SOURCE_EVENT_SOURCE_TYPE_INVALID:
assert_not_reached("Wut? I shouldn't exist.");
}
More information about the systemd-commits
mailing list