diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2018-02-10 04:47:12 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-10 04:47:12 +0100 |
commit | b8e2400586452499131ff5ab1edb60c1dfbcf92b (patch) | |
tree | df4f30f4a403391983f9c4005049182338bc12ef /src/basic/socket-util.c | |
parent | Revert "Periodically call sd_journal_process in journalctl" (#8147) (diff) | |
parent | socket-util: drop getnameinfo_pretty() (diff) | |
download | systemd-b8e2400586452499131ff5ab1edb60c1dfbcf92b.tar.xz systemd-b8e2400586452499131ff5ab1edb60c1dfbcf92b.zip |
Merge pull request #8143 from yuwata/drop-unused-func
Drop several unused functions
Diffstat (limited to 'src/basic/socket-util.c')
-rw-r--r-- | src/basic/socket-util.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/basic/socket-util.c b/src/basic/socket-util.c index 3b93da7301..b91b093132 100644 --- a/src/basic/socket-util.c +++ b/src/basic/socket-util.c @@ -758,19 +758,6 @@ int socknameinfo_pretty(union sockaddr_union *sa, socklen_t salen, char **_ret) return 0; } -int getnameinfo_pretty(int fd, char **ret) { - union sockaddr_union sa; - socklen_t salen = sizeof(sa); - - assert(fd >= 0); - assert(ret); - - if (getsockname(fd, &sa.sa, &salen) < 0) - return -errno; - - return socknameinfo_pretty(&sa, salen, ret); -} - int socket_address_unlink(SocketAddress *a) { assert(a); |