public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] support: Fix typo in xgetsockname error message
@ 2024-05-17 12:10 Avinal Kumar
  2024-05-17 13:49 ` Carlos O'Donell
  0 siblings, 1 reply; 3+ messages in thread
From: Avinal Kumar @ 2024-05-17 12:10 UTC (permalink / raw)
  To: libc-alpha; +Cc: Avinal Kumar, Arjun Shankar

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@redhat.com>
---
It's small but happy to get stated with glibc :)
---
 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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-05-17 14:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-05-17 12:10 [PATCH] support: Fix typo in xgetsockname error message Avinal Kumar
2024-05-17 13:49 ` Carlos O'Donell
2024-05-17 14:34   ` Avinal Kumar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).