aboutsummaryrefslogtreecommitdiffstats
path: root/eval.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2012-07-25 22:56:37 +0300
committerArnold D. Robbins <arnold@skeeve.com>2012-07-25 22:56:37 +0300
commit40eefdd931066129d0bb2f6144a0ec7741c6cc2b (patch)
tree7f1cd006b2f53d7c03f778dfc275ee7de1895276 /eval.c
parent4bb85f0f0e221c158b1a81af286acb422834c0fd (diff)
downloadegawk-40eefdd931066129d0bb2f6144a0ec7741c6cc2b.tar.gz
egawk-40eefdd931066129d0bb2f6144a0ec7741c6cc2b.tar.bz2
egawk-40eefdd931066129d0bb2f6144a0ec7741c6cc2b.zip
Remove translation of errno strings from API.
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/eval.c b/eval.c
index 9b3e8e01..f7037872 100644
--- a/eval.c
+++ b/eval.c
@@ -1007,13 +1007,11 @@ update_ERRNO_int(int errcode)
ERRNO_node->var_value = make_string(cp, strlen(cp));
}
-/* update_ERRNO_string --- update ERRNO with optionally translated string */
+/* update_ERRNO_string --- update ERRNO */
void
-update_ERRNO_string(const char *string, enum errno_translate translate)
+update_ERRNO_string(const char *string)
{
- if (translate == TRANSLATE)
- string = gettext(string);
unref(ERRNO_node->var_value);
ERRNO_node->var_value = make_string(string, strlen(string));
}