summaryrefslogtreecommitdiffstats
path: root/libsh/errno.sh
diff options
context:
space:
mode:
Diffstat (limited to 'libsh/errno.sh')
-rw-r--r--libsh/errno.sh10
1 files changed, 1 insertions, 9 deletions
diff --git a/libsh/errno.sh b/libsh/errno.sh
index a0f9648..fc0c884 100644
--- a/libsh/errno.sh
+++ b/libsh/errno.sh
@@ -26,10 +26,8 @@ static errlist='
EBADF 7
'
-static strerror()
+strerror(int errnum)
{
- local errnum=${1}
-
eval "msgget \"\${__errsym_${errnum}}\""
}
@@ -45,9 +43,3 @@ static init_error_syms()
unset IFS
}
__init ${init_error_syms}
-
-static errno_alias()
-{
- __alias ${strerror} strerror int
-}
-__init ${errno_alias}