[systemd-commits] src/core src/socket-proxy

Thomas H.P. Andersen phomes at kemper.freedesktop.org
Fri Jun 6 14:31:35 PDT 2014


 src/core/socket.c                |    2 +-
 src/socket-proxy/socket-proxyd.c |    3 ---
 2 files changed, 1 insertion(+), 4 deletions(-)

New commits:
commit e5a1c18d706c4d5e16100fe4fb8a07a80f2fa339
Author: Thomas Hindoe Paaboel Andersen <phomes at gmail.com>
Date:   Fri Jun 6 23:29:09 2014 +0200

    fix warnings
    
    Prevent use of uninitialized variable and removed a now unused
    cleanup function for freeaddrinfo

diff --git a/src/core/socket.c b/src/core/socket.c
index 9c4943e..4fb4b99 100644
--- a/src/core/socket.c
+++ b/src/core/socket.c
@@ -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);
diff --git a/src/socket-proxy/socket-proxyd.c b/src/socket-proxy/socket-proxyd.c
index d54a05a..b791305 100644
--- a/src/socket-proxy/socket-proxyd.c
+++ b/src/socket-proxy/socket-proxyd.c
@@ -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;



More information about the systemd-commits mailing list