diff options
author | Beniamino Galvani <bgalvani@redhat.com> | 2020-07-15 18:23:35 +0200 |
---|---|---|
committer | Beniamino Galvani <bgalvani@redhat.com> | 2020-08-26 17:28:45 +0200 |
commit | b609088ae660b3d04fd196afdfd292ba3c3a9f75 (patch) | |
tree | ef9f10857df190e4801a95c1a29dc5396fa85cc6 /src/dhcp/nm-dhcp-nettools.c | |
parent | 7f217d0345f59917444e7ebf1cecd22ed02e2b1b (diff) | |
download | NetworkManager-b609088ae660b3d04fd196afdfd292ba3c3a9f75.tar.gz |
dhcp: nettools: change event handler signature
Diffstat (limited to 'src/dhcp/nm-dhcp-nettools.c')
-rw-r--r-- | src/dhcp/nm-dhcp-nettools.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/dhcp/nm-dhcp-nettools.c b/src/dhcp/nm-dhcp-nettools.c index 3e6a290f9b..e7ae502d87 100644 --- a/src/dhcp/nm-dhcp-nettools.c +++ b/src/dhcp/nm-dhcp-nettools.c @@ -1067,7 +1067,7 @@ bound4_handle (NMDhcpNettools *self, NDhcp4ClientLease *lease, gboolean extended options); } -static gboolean +static void dhcp4_event_handle (NMDhcpNettools *self, NDhcp4ClientEvent *event) { @@ -1083,19 +1083,19 @@ dhcp4_event_handle (NMDhcpNettools *self, r = n_dhcp4_client_lease_get_server_identifier (event->offer.lease, &server_id); if (r) { _LOGW ("selecting lease failed: %d", r); - return TRUE; + return; } if (nm_dhcp_client_server_id_is_rejected (NM_DHCP_CLIENT (self), &server_id)) { _LOGD ("server-id %s is in the reject-list, ignoring", nm_utils_inet_ntop (AF_INET, &server_id, addr_str)); - return TRUE; + return; } r = n_dhcp4_client_lease_select (event->offer.lease); if (r) { _LOGW ("selecting lease failed: %d", r); - return TRUE; + return; } break; case N_DHCP4_CLIENT_EVENT_RETRACTED: @@ -1131,8 +1131,6 @@ dhcp4_event_handle (NMDhcpNettools *self, _LOGW ("unhandled DHCP event %d", event->event); break; } - - return TRUE; } static gboolean |