rbb 99/05/26 13:39:23
Modified: apr/test ab_apr.c Log: Casting some mallocs in ab_apr, so the AIX compiler doesn't complain about them Revision Changes Path 1.12 +3 -3 apache-apr/apr/test/ab_apr.c Index: ab_apr.c =================================================================== RCS file: /home/cvs/apache-apr/apr/test/ab_apr.c,v retrieving revision 1.11 retrieving revision 1.12 diff -u -r1.11 -r1.12 --- ab_apr.c 1999/05/26 17:53:04 1.11 +++ ab_apr.c 1999/05/26 20:39:23 1.12 @@ -685,10 +685,10 @@ fflush(stdout); } - con = malloc(concurrency * sizeof(struct connection)); + con = (struct connection *)malloc(concurrency * sizeof(struct connection)); memset(con, 0, concurrency * sizeof(struct connection)); - stats = malloc(requests * sizeof(struct data)); + stats = (struct data *)malloc(requests * sizeof(struct data)); ap_setup_poll(cntxt, concurrency, &readbits); /* setup request */ @@ -866,7 +866,7 @@ /* No need to perform stat here, the apr_open will do it for us. */ ap_get_filesize(postfd, &postlen); - postdata = malloc(postlen); + postdata = (char *)malloc(postlen); if (!postdata) { printf("Can\'t alloc postfile buffer\n"); return ENOMEM;