diff options
author | Lennart Poettering <lennart@poettering.net> | 2013-12-24 21:18:21 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2013-12-25 01:29:55 +0100 |
commit | 79a98c609da042c60260e8e0236464014d480dcb (patch) | |
tree | 41b2a3453324695917a55294743273711e51b80a /src/shared | |
parent | db69869f264af2d1afcdd3e573e0e9fdd5bef065 (diff) |
unit: include peer identity in description of per-connection socket-activated services
Diffstat (limited to 'src/shared')
-rw-r--r-- | src/shared/socket-util.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/shared/socket-util.c b/src/shared/socket-util.c index 45ada7eb3f..4700b3bc99 100644 --- a/src/shared/socket-util.c +++ b/src/shared/socket-util.c @@ -422,8 +422,7 @@ const char* socket_address_get_path(const SocketAddress *a) { } bool socket_ipv6_is_supported(void) { - char *l = 0; - bool enabled; + _cleanup_free_ char *l = NULL; if (access("/sys/module/ipv6", F_OK) != 0) return 0; @@ -433,10 +432,7 @@ bool socket_ipv6_is_supported(void) { return 1; /* If module was loaded with disable=1 no IPv6 available */ - enabled = l[0] == '0'; - free(l); - - return enabled; + return l[0] == '0'; } bool socket_address_matches_fd(const SocketAddress *a, int fd) { |