You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by "Victor J. Orlikowski" <v....@gte.net> on 2000/09/25 21:23:40 UTC
[PATCH] A few type fixes for xlC and AIX.
xlC barfed on these two. Mostly signedness problems...
Index: src/main/http_core.c
===================================================================
RCS file: /cvs/apache/apache-2.0/src/main/http_core.c,v
retrieving revision 1.134
diff -u -r1.134 http_core.c
--- http_core.c 2000/09/25 16:42:49 1.134
+++ http_core.c 2000/09/25 19:16:04
@@ -2553,7 +2553,7 @@
}
#endif
static apr_status_t writev_it_all(apr_socket_t *s, struct iovec *vec, int nvec,
- apr_size_t len, apr_ssize_t *nbytes)
+ apr_size_t len, apr_size_t *nbytes)
{
apr_size_t bytes_written = 0;
apr_status_t rv;
@@ -3119,7 +3119,7 @@
request_rec *r = f->r;
apr_pool_t *p = r->pool;
apr_status_t rv;
- apr_ssize_t bytes_sent = 0, len = 0;
+ apr_size_t bytes_sent = 0, len = 0;
ap_bucket *e;
Index: src/modules/standard/mod_cgid.c
===================================================================
RCS file: /cvs/apache/apache-2.0/src/modules/standard/mod_cgid.c,v
retrieving revision 1.42
diff -u -r1.42 mod_cgid.c
--- mod_cgid.c 2000/09/22 11:37:05 1.42
+++ mod_cgid.c 2000/09/25 19:16:05
@@ -842,7 +842,7 @@
char **env;
struct sockaddr_un unix_addr;
apr_file_t *tempsock = NULL;
- int nbytes;
+ apr_ssize_t nbytes;
if (r->method_number == M_OPTIONS) {
/* 99 out of 100 cgid scripts, this is all they support */
Victor
--
Victor J. Orlikowski
======================
v.j.orlikowski@gte.net
vjo@raleigh.ibm.com
vjo@us.ibm.com