summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2018-02-26 18:33:51 +0100
committerLennart Poettering <lennart@poettering.net>2018-02-26 18:39:32 +0100
commit4c9cb12c0536503979f44d04491ea7bbe118a4cc (patch)
treedc8b56c962ceba87c241777bc11bcb933cb2f625 /src
parentd7ba71f4b44a10507c53f64834124545663eee17 (diff)
downloadsystemd-4c9cb12c0536503979f44d04491ea7bbe118a4cc.tar.gz
logind: fd 0 is a valid fd
Diffstat (limited to 'src')
-rw-r--r--src/libsystemd-network/sd-dhcp-server.c2
-rw-r--r--src/login/logind-session-device.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/libsystemd-network/sd-dhcp-server.c b/src/libsystemd-network/sd-dhcp-server.c
index 907b72391b..d64a47d2fc 100644
--- a/src/libsystemd-network/sd-dhcp-server.c
+++ b/src/libsystemd-network/sd-dhcp-server.c
@@ -316,7 +316,7 @@ static int dhcp_server_send_udp(sd_dhcp_server *server, be32_t destination,
int r;
assert(server);
- assert(server->fd > 0);
+ assert(server->fd >= 0);
assert(message);
assert(len > sizeof(DHCPMessage));
diff --git a/src/login/logind-session-device.c b/src/login/logind-session-device.c
index 64162f6570..f160af17ba 100644
--- a/src/login/logind-session-device.c
+++ b/src/login/logind-session-device.c
@@ -527,7 +527,7 @@ int session_device_save(SessionDevice *sd) {
}
void session_device_attach_fd(SessionDevice *sd, int fd, bool active) {
- assert(fd > 0);
+ assert(fd >= 0);
assert(sd);
assert(sd->fd < 0);
assert(!sd->active);