aboutsummaryrefslogtreecommitdiff
path: root/tests/server
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2007-02-02 17:16:06 +0000
committerYang Tse <yangsita@gmail.com>2007-02-02 17:16:06 +0000
commitc26ec47e907e3707bdc94f116c0fcb2ba10fdb8c (patch)
treeadb1b68a0969dcad53533ce38b0477f650ca30f3 /tests/server
parent8337a375dd5bbe6b1dab4b711a5fdbc1664cb298 (diff)
compiler warning fix
Diffstat (limited to 'tests/server')
-rw-r--r--tests/server/tftpd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/server/tftpd.c b/tests/server/tftpd.c
index 1b674a592..561f2f044 100644
--- a/tests/server/tftpd.c
+++ b/tests/server/tftpd.c
@@ -258,7 +258,7 @@ static void read_ahead(struct testcase *test,
newline = 1;
}
}
- *p++ = c;
+ *p++ = (char)c;
}
b->counter = (int)(p - dp->th_data);
}
@@ -611,7 +611,7 @@ again:
for (cp = mode; *cp; cp++)
if (isupper((int)*cp))
- *cp = tolower((int)*cp);
+ *cp = (char)tolower((int)*cp);
/* store input protocol */
fprintf(test->server, "mode: %s\n", mode);