diff options
author | Lennart Poettering <lennart@poettering.net> | 2018-10-12 18:49:18 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2018-10-13 12:37:13 +0200 |
commit | 165ad41b7fb97fb61e5436896dbaeb1b3e62f2e2 (patch) | |
tree | 14801ab15aff882ec1af0d1e4ebfa90020b53b4d /src/libsystemd-network/sd-ndisc.c | |
parent | sd-ndisc: voidify sd_ndisc_stop() call (diff) | |
download | systemd-165ad41b7fb97fb61e5436896dbaeb1b3e62f2e2.tar.xz systemd-165ad41b7fb97fb61e5436896dbaeb1b3e62f2e2.zip |
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 '')
-rw-r--r-- | src/libsystemd-network/sd-ndisc.c | 4 |
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) { |