summaryrefslogtreecommitdiffstats
path: root/src/funcs.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/funcs.c')
-rw-r--r--src/funcs.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/funcs.c b/src/funcs.c
index 38e66f8..5179192 100644
--- a/src/funcs.c
+++ b/src/funcs.c
@@ -38,7 +38,7 @@
#endif
#endif
-__RCSID("$MirOS: src/bin/mksh/funcs.c,v 1.350 2017/05/05 22:53:28 tg Exp $");
+__RCSID("$MirOS: src/bin/mksh/funcs.c,v 1.353 2018/01/14 01:26:49 tg Exp $");
#if HAVE_KILLPG
/*
@@ -594,7 +594,7 @@ c_print(const char **wp)
static int
s_get(void)
{
- return (*s_ptr++);
+ return (ord(*s_ptr++));
}
static void
@@ -751,9 +751,9 @@ do_whence(const char **wp, int fcflags, bool vflag, bool iscommand)
bool
valid_alias_name(const char *cp)
{
- if (ord(*cp) == ord('-'))
+ if (ord(*cp) == ORD('-'))
return (false);
- if (ord(cp[0]) == ord('[') && ord(cp[1]) == ord('[') && !cp[2])
+ if (ord(cp[0]) == ORD('[') && ord(cp[1]) == ORD('[') && !cp[2])
return (false);
while (*cp)
if (ctype(*cp, C_ALIAS))
@@ -2304,9 +2304,9 @@ c_unset(const char **wp)
size_t n;
n = strlen(id);
- if (n > 3 && ord(id[n - 3]) == ord('[') &&
- ord(id[n - 2]) == ord('*') &&
- ord(id[n - 1]) == ord(']')) {
+ if (n > 3 && ord(id[n - 3]) == ORD('[') &&
+ ord(id[n - 2]) == ORD('*') &&
+ ord(id[n - 1]) == ORD(']')) {
strndupx(cp, id, n - 3, ATEMP);
id = cp;
optc = 3;
@@ -3539,7 +3539,7 @@ c_cat(const char **wp)
continue;
}
if (errno == EPIPE) {
- /* fake receiving signel */
+ /* fake receiving signal */
rv = ksh_sigmask(SIGPIPE);
} else {
/* an error occured during writing */