summaryrefslogtreecommitdiff
path: root/src/rc/rc-applets.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-04-17 10:19:58 +0000
committerRoy Marples <roy@marples.name>2008-04-17 10:19:58 +0000
commitf0aacec02eb04f1843cc5c729fd5510c2342660c (patch)
tree6f2ed637801be469663811f92e0833714ff4eb22 /src/rc/rc-applets.c
parent57e1dd7389229718b170d5c6fe52b0b051729801 (diff)
downloadopenrc-f0aacec02eb04f1843cc5c729fd5510c2342660c.tar.gz
openrc-f0aacec02eb04f1843cc5c729fd5510c2342660c.tar.bz2
openrc-f0aacec02eb04f1843cc5c729fd5510c2342660c.tar.xz
Cast to unsigned char for ctype calls.
Diffstat (limited to 'src/rc/rc-applets.c')
-rw-r--r--src/rc/rc-applets.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rc/rc-applets.c b/src/rc/rc-applets.c
index d434be4..60c0c27 100644
--- a/src/rc/rc-applets.c
+++ b/src/rc/rc-applets.c
@@ -58,7 +58,7 @@ static int syslog_decode(char *name, CODE *codetab)
{
CODE *c;
- if (isdigit((int) *name))
+ if (isdigit((unsigned char)*name))
return atoi(name);
for (c = codetab; c->c_name; c++)
@@ -351,7 +351,7 @@ static int do_shell_var(int argc, char **argv)
putchar(' ');
while (*p) {
- c = *p++;
+ c = (unsigned char)*p++;
if (! isalnum(c))
c = '_';
putchar(c);