diff mbox series

[v2] support: Fix typo in xgetsockname error message

Message ID 20240517150410.2026373-1-avinal.xlvii@gmail.com
State New
Headers show
Series [v2] support: Fix typo in xgetsockname error message | expand

Commit Message

Avinal Kumar May 17, 2024, 3:03 p.m. UTC
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 mbox series

Patch

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);
 }