mirror of
https://github.com/morgan9e/systemd
synced 2026-04-15 00:47:10 +09:00
journald: let's use TAKE_PTR() and TAKE_FD() where appropriate
This commit is contained in:
@@ -631,8 +631,7 @@ int stdout_stream_install(Server *s, int fd, StdoutStream **ret) {
|
||||
if (ret)
|
||||
*ret = stream;
|
||||
|
||||
stream = NULL;
|
||||
|
||||
TAKE_PTR(stream);
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -675,7 +674,7 @@ static int stdout_stream_new(sd_event_source *es, int listen_fd, uint32_t revent
|
||||
if (r < 0)
|
||||
return r;
|
||||
|
||||
fd = -1;
|
||||
TAKE_FD(fd);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user