summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2017-01-11 14:09:47 -0500
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2017-01-11 16:37:34 -0500
commit69dc6922524c32d6b3723394d44fb5f60c9c438a (patch)
treeba38bbf5c8582a1b8245cbacc67100ad71ed7cba
parentda3bddc993a06c7c7b6f903244d3de88443082e2 (diff)
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.
-rw-r--r--src/basic/socket-util.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/basic/socket-util.h b/src/basic/socket-util.h
index 0df1a600af..3c42e220e5 100644
--- a/src/basic/socket-util.h
+++ b/src/basic/socket-util.h
@@ -102,7 +102,7 @@ const char* socket_address_get_path(const SocketAddress *a);
bool socket_ipv6_is_supported(void);
-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);