summaryrefslogtreecommitdiffstats
path: root/otherlibs/unix/errmsg.c
diff options
context:
space:
mode:
Diffstat (limited to 'otherlibs/unix/errmsg.c')
-rw-r--r--otherlibs/unix/errmsg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/otherlibs/unix/errmsg.c b/otherlibs/unix/errmsg.c
index d3efc8414..2da459913 100644
--- a/otherlibs/unix/errmsg.c
+++ b/otherlibs/unix/errmsg.c
@@ -12,7 +12,7 @@ value unix_error_message(err)
value err;
{
int errnum;
- errnum = error_table[Tag_val(err)];
+ errnum = error_table[Int_val(err)];
return copy_string(strerror(errno));
}
@@ -25,7 +25,7 @@ value unix_error_message(err)
value err;
{
int errnum;
- errnum = error_table[Tag_val(err)];
+ errnum = error_table[Int_val(err)];
if (errnum < 0 || errnum >= sys_nerr) {
return copy_string("Unknown error");
} else {