diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/proc_child.c | 6 | ||||
-rw-r--r-- | test/sockchild.c | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/test/proc_child.c b/test/proc_child.c index 405bb7f5b..6cfc8fc9f 100644 --- a/test/proc_child.c +++ b/test/proc_child.c @@ -11,11 +11,11 @@ int main(void) { char buf[256]; - apr_ssize_t bytes; + int bytes; - bytes = read(STDIN_FILENO, buf, 256); + bytes = (int)read(STDIN_FILENO, buf, 256); if (bytes > 0) - write(STDOUT_FILENO, buf, bytes); + write(STDOUT_FILENO, buf, (unsigned int)bytes); return 0; /* just to keep the compiler happy */ } diff --git a/test/sockchild.c b/test/sockchild.c index 5c15d113f..3803d00af 100644 --- a/test/sockchild.c +++ b/test/sockchild.c @@ -67,14 +67,14 @@ int main(int argc, char *argv[]) exit(-1); } - exit(length); + exit((int)length); } else if (!strcmp("write", argv[1])) { apr_size_t length = strlen(DATASTR); apr_socket_send(sock, DATASTR, &length); apr_socket_close(sock); - exit(length); + exit((int)length); } exit(-1); } |