mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-13 13:17:43 +03:00
fix warnings
Prevent use of uninitialized variable and removed a now unused cleanup function for freeaddrinfo
This commit is contained in:
parent
4457430353
commit
e5a1c18d70
@ -1410,7 +1410,7 @@ static int socket_chown(Socket *s, pid_t *_pid) {
|
||||
}
|
||||
|
||||
LIST_FOREACH(port, p, s->ports) {
|
||||
const char *path;
|
||||
const char *path = NULL;
|
||||
|
||||
if (p->type == SOCKET_SOCKET)
|
||||
path = socket_address_get_path(&p->address);
|
||||
|
@ -47,9 +47,6 @@
|
||||
|
||||
static const char *arg_remote_host = NULL;
|
||||
|
||||
#define _cleanup_freeaddrinfo_ _cleanup_(freeaddrinfop)
|
||||
DEFINE_TRIVIAL_CLEANUP_FUNC(struct addrinfo *, freeaddrinfo);
|
||||
|
||||
typedef struct Context {
|
||||
sd_event *event;
|
||||
sd_resolve *resolve;
|
||||
|
Loading…
Reference in New Issue
Block a user