1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-12-22 13:33:56 +03:00

silence warnings

This commit is contained in:
Thomas Hindoe Paaboel Andersen 2014-03-27 20:13:11 +01:00
parent 93c941e3fb
commit 9f2a50a300
3 changed files with 4 additions and 2 deletions

View File

@ -38,7 +38,7 @@
int net_get_unique_predictable_data(struct udev_device *device, uint8_t result[8]) { int net_get_unique_predictable_data(struct udev_device *device, uint8_t result[8]) {
size_t l, sz = 0; size_t l, sz = 0;
const char *name, *field = NULL; const char *name = NULL, *field = NULL;
int r; int r;
uint8_t *v; uint8_t *v;

View File

@ -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) { static int client_send_discover(sd_dhcp_client *client) {
_cleanup_free_ DHCPPacket *discover; _cleanup_free_ DHCPPacket *discover = NULL;
size_t optlen, len; size_t optlen, len;
uint8_t *opt; uint8_t *opt;
usec_t time_now; usec_t time_now;

View File

@ -1983,6 +1983,8 @@ static int source_dispatch(sd_event_source *s) {
break; break;
case SOURCE_WATCHDOG: case SOURCE_WATCHDOG:
case _SOUFCE_EVENT_SOURCE_TYPE_MAX:
case _SOURCE_EVENT_SOURCE_TYPE_INVALID:
assert_not_reached("Wut? I shouldn't exist."); assert_not_reached("Wut? I shouldn't exist.");
} }