summaryrefslogtreecommitdiffstats
path: root/libsh/errno.sh
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2016-02-19 02:35:23 (EST)
committer P. J. McDermott <pj@pehjota.net>2016-02-19 02:35:23 (EST)
commita9f84d9757aad50db3f1d7e11c6e779b920ed96b (patch)
tree103d2da4d0ed2698e2728dade5f225ccb11730d0 /libsh/errno.sh
parent5da1775daf87fe38d46dcdeef6ed64c6fac0bd29 (diff)
downloadeggshell-a9f84d9757aad50db3f1d7e11c6e779b920ed96b.zip
eggshell-a9f84d9757aad50db3f1d7e11c6e779b920ed96b.tar.gz
eggshell-a9f84d9757aad50db3f1d7e11c6e779b920ed96b.tar.bz2
libsh: Use parameter lists instead of aliases
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}