From da772f4aa37fc91728a9310074face7d243d90ec Mon Sep 17 00:00:00 2001 From: =?utf8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Wed, 11 Jan 2017 14:09:47 -0500 Subject: [PATCH] socket-util: drop _pure_ from a function with an output parameter If it writes to memory, it's not pure, by definition. Fixup for 882ac6e769c5c. --- src/basic/socket-util.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/basic/socket-util.h b/src/basic/socket-util.h index ce55baa9b..195bfb830 100644 --- a/src/basic/socket-util.h +++ b/src/basic/socket-util.h @@ -104,7 +104,7 @@ const char* socket_address_get_path(const SocketAddress *a); bool socket_ipv6_is_supported(void); #if 0 /// UNNEEDED by elogind -int sockaddr_port(const struct sockaddr *_sa, unsigned *port) _pure_; +int sockaddr_port(const struct sockaddr *_sa, unsigned *port); int sockaddr_pretty(const struct sockaddr *_sa, socklen_t salen, bool translate_ipv6, bool include_port, char **ret); int getpeername_pretty(int fd, bool include_port, char **ret); -- 2.30.2