chiark / gitweb /
socket-util: drop _pure_ from a function with an output parameter
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 11 Jan 2017 19:09:47 +0000 (14:09 -0500)
committerSven Eden <yamakuzure@gmx.net>
Mon, 17 Jul 2017 15:58:35 +0000 (17:58 +0200)
If it writes to memory, it's not pure, by definition.
Fixup for 882ac6e769c5c.

src/basic/socket-util.h

index ce55baa9bec94c1c109ebcd30a7547117de89ced..195bfb8300ad209df018affb72ce65c661392e69 100644 (file)
@@ -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);