summaryrefslogtreecommitdiffstats
path: root/gl/gai_strerror.c
diff options
context:
space:
mode:
Diffstat (limited to 'gl/gai_strerror.c')
-rw-r--r--gl/gai_strerror.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/gl/gai_strerror.c b/gl/gai_strerror.c
index 9c5f1419..ef6b506b 100644
--- a/gl/gai_strerror.c
+++ b/gl/gai_strerror.c
@@ -1,4 +1,4 @@
1/* Copyright (C) 1997, 2001-2002, 2004-2006, 2008-2025 Free Software 1/* Copyright (C) 1997, 2001-2002, 2004-2006, 2008-2026 Free Software
2 Foundation, Inc. 2 Foundation, Inc.
3 This file is part of the GNU C Library. 3 This file is part of the GNU C Library.
4 Contributed by Philip Blundell <pjb27@cam.ac.uk>, 1997. 4 Contributed by Philip Blundell <pjb27@cam.ac.uk>, 1997.
@@ -27,7 +27,7 @@
27# include <libintl.h> 27# include <libintl.h>
28#else 28#else
29# include "gettext.h" 29# include "gettext.h"
30# define _(msgid) dgettext ("gnulib", msgid) 30# define _(msgid) dgettext (GNULIB_TEXT_DOMAIN, msgid)
31# define N_(msgid) msgid 31# define N_(msgid) msgid
32#endif 32#endif
33 33
@@ -79,8 +79,7 @@ values[] =
79const char * 79const char *
80gai_strerror (int code) 80gai_strerror (int code)
81{ 81{
82 size_t i; 82 for (size_t i = 0; i < sizeof (values) / sizeof (values[0]); ++i)
83 for (i = 0; i < sizeof (values) / sizeof (values[0]); ++i)
84 if (values[i].code == code) 83 if (values[i].code == code)
85 return _(values[i].msg); 84 return _(values[i].msg);
86 85