[PATCH v2] support: Fix typo in xgetsockname error message
Avinal Kumar
avinal.xlvii@gmail.com
Fri May 17 15:03:13 GMT 2024
The error message in xgetsockname was incorrectly referring to a
different function. This commit fixes that.
Suggested-by: Arjun Shankar <arjun@redhat.com>
Signed-off-by: Avinal Kumar <avinal.xlvii@gmail.com>
---
Changes from v1:
* Added correct copyright statement.
---
support/xgetsockname.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/support/xgetsockname.c b/support/xgetsockname.c
index fd1a42ea1e..4f53a874d2 100644
--- a/support/xgetsockname.c
+++ b/support/xgetsockname.c
@@ -26,5 +26,5 @@ void
xgetsockname (int fd, struct sockaddr *sa, socklen_t *plen)
{
if (getsockname (fd, sa, plen) != 0)
- FAIL_EXIT1 ("setsockopt (%d): %m", fd);
+ FAIL_EXIT1 ("getsockname (%d): %m", fd);
}
--
2.45.0
More information about the Libc-alpha
mailing list