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/08/24 20:39:50 UTC
[PATCH] ype clean-ups, plus removal of needless casts
A pair of needless casts are removed by this patch, and a couple of
variables are changed to the correct types, so as to avoid compiler
complaints.
Index: src/main/http_core.c
===================================================================
RCS file: /cvs/apache/apache-2.0/src/main/http_core.c,v
retrieving revision 1.106
diff -u -r1.106 http_core.c
--- http_core.c 2000/08/23 00:01:52 1.106
+++ http_core.c 2000/08/24 18:35:50
@@ -2981,7 +2981,7 @@
#endif
apr_ssize_t bytes_sent = 0;
ap_bucket *dptr = b->head;
- int len = 0, written;
+ long len = 0, written;
const char *str;
#if 0
Index: src/main/http_main.c
===================================================================
RCS file: /cvs/apache/apache-2.0/src/main/http_main.c,v
retrieving revision 1.64
diff -u -r1.64 http_main.c
--- http_main.c 2000/08/09 14:56:55 1.64
+++ http_main.c 2000/08/24 18:35:50
@@ -293,7 +293,7 @@
const char *optarg;
apr_initialize();
- process = create_process(argc, (char *const *)argv);
+ process = create_process(argc, argv);
pglobal = process->pool;
pconf = process->pconf;
ap_server_argv0 = process->short_name;
Index: src/support/ab.c
===================================================================
RCS file: /cvs/apache/apache-2.0/src/support/ab.c,v
retrieving revision 1.26
diff -u -r1.26 ab.c
--- ab.c 2000/08/10 12:52:37 1.26
+++ ab.c 2000/08/24 18:35:52
@@ -1008,7 +1008,7 @@
#endif
apr_initopt(&opt, cntxt, argc, argv);
- while ((status = apr_getopt(opt, "n:c:t:T:p:v:kVhwix:y:z:C:H:P:A:", &c, &optarg)) == APR_SUCCESS) {
+ while ((status = apr_getopt(opt, "n:c:t:T:p:v:kVhwix:y:z:C:H:P:A:", &c, (const char**) &optarg)) == APR_SUCCESS) {
switch (c) {
case 'n':
requests = atoi(optarg);
--
Victor J. Orlikowski
======================
v.j.orlikowski@gte.net
vjo@raleigh.ibm.com
vjo@us.ibm.com