From 7fd1b19bc9e9f5574f2877936b8ac267c7706947 Mon Sep 17 00:00:00 2001 From: Harald Hoyer Date: Thu, 18 Apr 2013 09:11:22 +0200 Subject: move _cleanup_ attribute in front of the type http://lists.freedesktop.org/archives/systemd-devel/2013-April/010510.html --- src/shared/socket-util.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/shared/socket-util.c') diff --git a/src/shared/socket-util.c b/src/shared/socket-util.c index 4933fe08e2..c583d3dfea 100644 --- a/src/shared/socket-util.c +++ b/src/shared/socket-util.c @@ -364,7 +364,7 @@ int socket_address_print(const SocketAddress *a, char **p) { } case AF_NETLINK: { - char _cleanup_free_ *sfamily = NULL; + _cleanup_free_ char *sfamily = NULL; r = netlink_family_to_string_alloc(a->protocol, &sfamily); if (r < 0) @@ -568,7 +568,7 @@ bool socket_address_matches_fd(const SocketAddress *a, int fd) { int make_socket_fd(const char* address, int flags) { SocketAddress a; int fd, r; - char _cleanup_free_ *p = NULL; + _cleanup_free_ char *p = NULL; r = socket_address_parse(&a, address); if (r < 0) { -- cgit v1.2.3-54-g00ecf