From 4af3a3884269e4cfbc9d2a519b5437f670287a97 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Sun, 4 Sep 2022 00:53:16 +0200 Subject: [PATCH] net: Refer to correct man page in stringify_port(). The function calls getservbyport(), not getservent(). --- net.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net.c b/net.c index d6dfa7e3..1c0e7ffa 100644 --- 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) { -- 2.39.5