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.
This commit is contained in:
parent
76f713dfa4
commit
165ad41b7f
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue