summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2018-10-12 18:49:18 +0200
committerLennart Poettering <lennart@poettering.net>2018-10-13 12:37:13 +0200
commit165ad41b7fb97fb61e5436896dbaeb1b3e62f2e2 (patch)
tree14801ab15aff882ec1af0d1e4ebfa90020b53b4d /src
parent76f713dfa47f803ef843ea2ae86ab2db2eea37d6 (diff)
downloadsystemd-165ad41b7fb97fb61e5436896dbaeb1b3e62f2e2.tar.gz
sd-ndisc: change return value of ndisc_reset() to void
We never generate anything other than 0 anyway, and we never check it, hence let's just simplify things.
Diffstat (limited to 'src')
-rw-r--r--src/libsystemd-network/sd-ndisc.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/libsystemd-network/sd-ndisc.c b/src/libsystemd-network/sd-ndisc.c
index 6f0e2ca0df..d679fc8222 100644
--- a/src/libsystemd-network/sd-ndisc.c
+++ b/src/libsystemd-network/sd-ndisc.c
@@ -100,7 +100,7 @@ _public_ sd_event *sd_ndisc_get_event(sd_ndisc *nd) {
return nd->event;
}
-static int ndisc_reset(sd_ndisc *nd) {
+static void ndisc_reset(sd_ndisc *nd) {
assert(nd);
nd->timeout_event_source = sd_event_source_unref(nd->timeout_event_source);
@@ -108,8 +108,6 @@ static int ndisc_reset(sd_ndisc *nd) {
nd->retransmit_time = 0;
nd->recv_event_source = sd_event_source_unref(nd->recv_event_source);
nd->fd = safe_close(nd->fd);
-
- return 0;
}
static sd_ndisc *ndisc_free(sd_ndisc *nd) {