~ubuntu-branches/ubuntu/hardy/apache2/hardy-proposed

« back to all changes in this revision

Viewing changes to srclib/apr/test/proc_child.c

  • Committer: Bazaar Package Importer
  • Author(s): Stefan Fritsch
  • Date: 2008-01-17 20:27:56 UTC
  • mto: This revision was merged to the branch mainline in revision 26.
  • Revision ID: james.westby@ubuntu.com-20080117202756-hv38rjknhwa2ilwi
Tags: upstream-2.2.8
ImportĀ upstreamĀ versionĀ 2.2.8

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
int main(void)
12
12
{
13
13
    char buf[256];
14
 
    apr_ssize_t bytes;
 
14
    int bytes;
15
15
    
16
 
    bytes = read(STDIN_FILENO, buf, 256);
 
16
    bytes = (int)read(STDIN_FILENO, buf, 256);
17
17
    if (bytes > 0)
18
 
        write(STDOUT_FILENO, buf, bytes);
 
18
        write(STDOUT_FILENO, buf, (unsigned int)bytes);
19
19
 
20
20
    return 0; /* just to keep the compiler happy */
21
21
}