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.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/otherlibs/unix/errmsg.c b/otherlibs/unix/errmsg.c
index b10a080fb..c802bc3f4 100644
--- a/otherlibs/unix/errmsg.c
+++ b/otherlibs/unix/errmsg.c
@@ -19,10 +19,9 @@ extern int error_table[];
#ifdef HAS_STRERROR
-extern char * strerror();
+extern char * strerror(int);
-value unix_error_message(err)
- value err;
+value unix_error_message(value err)
{
int errnum;
errnum = error_table[Int_val(err)];
@@ -34,8 +33,7 @@ value unix_error_message(err)
extern int sys_nerr;
extern char *sys_errlist[];
-value unix_error_message(err)
- value err;
+value unix_error_message(value err)
{
int errnum;
errnum = error_table[Int_val(err)];