diff options
author | William A. Rowe Jr <wrowe@apache.org> | 2007-10-14 19:24:12 +0000 |
---|---|---|
committer | William A. Rowe Jr <wrowe@apache.org> | 2007-10-14 19:24:12 +0000 |
commit | 6dc35b3241d3866062b7acc9af627988d93b87ec (patch) | |
tree | e49c1563192a6799e204ea35e0c9ad791f7c1110 /test/proc_child.c | |
parent | 879643209bb5b12413b6a71e3ec332e70e4b7616 (diff) | |
download | apr-6dc35b3241d3866062b7acc9af627988d93b87ec.tar.gz |
Solve two int-size issues on some platforms; exit is well defined
to return an (int) while on some platforms read/write is still
expressed as unsigned int bytes of data. Both harmless truncations.
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@584587 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test/proc_child.c')
-rw-r--r-- | test/proc_child.c | 6 |
1 files changed, 3 insertions, 3 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 */ } |