]> git.tuebingen.mpg.de Git - paraslash.git/commitdiff
net: Refer to correct man page in stringify_port().
authorAndre Noll <maan@tuebingen.mpg.de>
Sat, 3 Sep 2022 22:53:16 +0000 (00:53 +0200)
committerAndre Noll <maan@tuebingen.mpg.de>
Mon, 3 Oct 2022 20:53:49 +0000 (22:53 +0200)
The function calls getservbyport(), not getservent().

net.c

diff --git a/net.c b/net.c
index d6dfa7e3f56409bf2d5daf4ae534a348c86a1370..1c0e7ffa13cec1043babf65bf3a951656dabad8c 100644 (file)
--- a/net.c
+++ b/net.c
@@ -219,7 +219,7 @@ char *format_url(const char *url, int default_port)
  * \param transport Transport protocol name (e.g. "udp", "tcp"), or NULL.
  * \return Pointer to static result buffer.
  *
- * \sa getservent(3), services(5), nsswitch.conf(5).
+ * \sa getservbyport(3), services(5), nsswitch.conf(5).
  */
 const char *stringify_port(int port, const char *transport)
 {