diff options
| author | Andreas Baumann <mail@andreasbaumann.cc> | 2026-03-27 11:14:20 +0100 |
|---|---|---|
| committer | Andreas Baumann <mail@andreasbaumann.cc> | 2026-03-27 11:14:20 +0100 |
| commit | 1113bbcd92d85b85579aa7feef511241e58fb0f5 (patch) | |
| tree | d69b7bcfe2f7e80fda9a1f4ddd38209d6cb7aaf0 /gl/gai_strerror.c | |
| parent | 99283972fe3a74d3a1dea12c4099f76286130a67 (diff) | |
| parent | a71ce153082565e5728424749475593dc0623492 (diff) | |
| download | monitoring-plugins-1113bbcd92d85b85579aa7feef511241e58fb0f5.tar.gz | |
merged with mastercheck_snmp_fixes
Diffstat (limited to 'gl/gai_strerror.c')
| -rw-r--r-- | gl/gai_strerror.c | 7 |
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[] = | |||
| 79 | const char * | 79 | const char * |
| 80 | gai_strerror (int code) | 80 | gai_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 | ||
