chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b7dde4d
)
socket-util: drop _pure_ from a function with an output parameter
author
Zbigniew Jędrzejewski-Szmek
<zbyszek@in.waw.pl>
Wed, 11 Jan 2017 19:09:47 +0000
(14:09 -0500)
committer
Sven 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
patch
|
blob
|
history
diff --git
a/src/basic/socket-util.h
b/src/basic/socket-util.h
index ce55baa9bec94c1c109ebcd30a7547117de89ced..195bfb8300ad209df018affb72ce65c661392e69 100644
(file)
--- 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);