mirror of
https://github.com/systemd/systemd.git
synced 2024-10-30 14:55:37 +03:00
tree-wide: voidify unchecked close_nointr calls
These have ignored the return value forever. Two are public APIs so we can't really change what they return anyway, and the other one is a cleanup path and the existing error code is more important. CID#1461274 CID#1461275 CID#1461276
This commit is contained in:
parent
8954e89195
commit
b87dfaa2fa
@ -999,7 +999,7 @@ _public_ int sd_login_monitor_new(const char *category, sd_login_monitor **m) {
|
||||
|
||||
_public_ sd_login_monitor* sd_login_monitor_unref(sd_login_monitor *m) {
|
||||
if (m)
|
||||
close_nointr(MONITOR_TO_FD(m));
|
||||
(void) close_nointr(MONITOR_TO_FD(m));
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
@ -444,7 +444,7 @@ _public_ int sd_network_monitor_new(sd_network_monitor **m, const char *category
|
||||
|
||||
_public_ sd_network_monitor* sd_network_monitor_unref(sd_network_monitor *m) {
|
||||
if (m)
|
||||
close_nointr(MONITOR_TO_FD(m));
|
||||
(void) close_nointr(MONITOR_TO_FD(m));
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
@ -141,7 +141,7 @@ static int session_device_open(SessionDevice *sd, bool active) {
|
||||
* that so fail at all times and let caller retry in inactive state. */
|
||||
r = sd_drmsetmaster(fd);
|
||||
if (r < 0) {
|
||||
close_nointr(fd);
|
||||
(void) close_nointr(fd);
|
||||
return r;
|
||||
}
|
||||
} else
|
||||
|
Loading…
Reference in New Issue
Block a user