You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by je...@apache.org on 2002/09/15 02:00:48 UTC
cvs commit: httpd-2.0/modules/ssl mod_ssl.c ssl_expr_parse.y ssl_util_ssl.c
jerenkrantz 2002/09/14 17:00:48
Modified: . CHANGES
modules/filters config.m4 mod_include.c
modules/ssl mod_ssl.c ssl_expr_parse.y ssl_util_ssl.c
Log:
Remove warnings seen with Sun's Forte compiler.
Revision Changes Path
1.927 +2 -0 httpd-2.0/CHANGES
Index: CHANGES
===================================================================
RCS file: /home/cvs/httpd-2.0/CHANGES,v
retrieving revision 1.926
retrieving revision 1.927
diff -u -u -r1.926 -r1.927
--- CHANGES 14 Sep 2002 23:05:41 -0000 1.926
+++ CHANGES 15 Sep 2002 00:00:47 -0000 1.927
@@ -1,5 +1,7 @@
Changes with Apache 2.0.42
+ *) Remove warnings with Sun's Forte compiler. [Justin Erenkrantz]
+
*) Fixed mod_disk_cache's generation of 304s
[Kris Verbeeck <Kr...@ubizen.com>]
1.8 +1 -1 httpd-2.0/modules/filters/config.m4
Index: config.m4
===================================================================
RCS file: /home/cvs/httpd-2.0/modules/filters/config.m4,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -u -r1.7 -r1.8
--- config.m4 6 May 2002 22:23:52 -0000 1.7
+++ config.m4 15 Sep 2002 00:00:47 -0000 1.8
@@ -49,7 +49,7 @@
fi
APR_ADDTO(LIBS, [-lz])
AC_MSG_CHECKING([for zlib library])
- AC_TRY_LINK([#include <zlib.h>], [return Z_OK;],
+ AC_TRY_LINK([#include <zlib.h>], [int i = Z_OK;],
[AC_MSG_RESULT(found)
AC_CHECK_HEADERS(zutil.h)],
[AC_MSG_RESULT(not found)
1.232 +2 -4 httpd-2.0/modules/filters/mod_include.c
Index: mod_include.c
===================================================================
RCS file: /home/cvs/httpd-2.0/modules/filters/mod_include.c,v
retrieving revision 1.231
retrieving revision 1.232
diff -u -u -r1.231 -r1.232
--- mod_include.c 10 Jul 2002 06:01:10 -0000 1.231
+++ mod_include.c 15 Sep 2002 00:00:47 -0000 1.232
@@ -2086,7 +2086,7 @@
break;
}
/* Percolate upwards */
- while (current != (struct parse_node *) NULL) {
+ if (current != (struct parse_node *) NULL) {
switch (current->token.type) {
case token_not:
case token_eq:
@@ -2106,7 +2106,6 @@
*was_error = 1;
return retval;
}
- break;
}
if (current == (struct parse_node *) NULL) {
new->left = root;
@@ -2215,7 +2214,7 @@
break;
}
/* Percolate upwards */
- while (current != (struct parse_node *) NULL) {
+ if (current != (struct parse_node *) NULL) {
switch (current->token.type) {
case token_not:
case token_eq:
@@ -2238,7 +2237,6 @@
*was_error = 1;
return retval;
}
- break;
}
if (current == (struct parse_node *) NULL) {
new->left = root;
1.70 +2 -1 httpd-2.0/modules/ssl/mod_ssl.c
Index: mod_ssl.c
===================================================================
RCS file: /home/cvs/httpd-2.0/modules/ssl/mod_ssl.c,v
retrieving revision 1.69
retrieving revision 1.70
diff -u -u -r1.69 -r1.70
--- mod_ssl.c 4 Jun 2002 07:12:26 -0000 1.69
+++ mod_ssl.c 15 Sep 2002 00:00:48 -0000 1.70
@@ -335,7 +335,8 @@
return DECLINED; /* XXX */
}
- vhost_md5 = ap_md5_binary(c->pool, sc->vhost_id, sc->vhost_id_len);
+ vhost_md5 = ap_md5_binary(c->pool, (unsigned char *)sc->vhost_id,
+ sc->vhost_id_len);
if (!SSL_set_session_id_context(ssl, (unsigned char *)vhost_md5,
MD5_DIGESTSIZE*2))
1.6 +0 -2 httpd-2.0/modules/ssl/ssl_expr_parse.y
Index: ssl_expr_parse.y
===================================================================
RCS file: /home/cvs/httpd-2.0/modules/ssl/ssl_expr_parse.y,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -u -r1.5 -r1.6
--- ssl_expr_parse.y 13 Mar 2002 20:47:55 -0000 1.5
+++ ssl_expr_parse.y 15 Sep 2002 00:00:48 -0000 1.6
@@ -151,7 +151,6 @@
REG_EXTENDED|REG_NOSUB)) == NULL) {
ssl_expr_error = "Failed to compile regular expression";
YYERROR;
- regex = NULL;
}
$$ = ssl_expr_make(op_Regex, regex, NULL);
}
@@ -161,7 +160,6 @@
REG_EXTENDED|REG_NOSUB|REG_ICASE)) == NULL) {
ssl_expr_error = "Failed to compile regular expression";
YYERROR;
- regex = NULL;
}
$$ = ssl_expr_make(op_Regex, regex, NULL);
}
1.21 +1 -1 httpd-2.0/modules/ssl/ssl_util_ssl.c
Index: ssl_util_ssl.c
===================================================================
RCS file: /home/cvs/httpd-2.0/modules/ssl/ssl_util_ssl.c,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -u -r1.20 -r1.21
--- ssl_util_ssl.c 2 Apr 2002 22:07:09 -0000 1.20
+++ ssl_util_ssl.c 15 Sep 2002 00:00:48 -0000 1.21
@@ -386,7 +386,7 @@
X509_NAME *xsn;
X509_NAME_ENTRY *xsne;
int i, nid;
- char *data_ptr;
+ unsigned char *data_ptr;
int data_len;
xsn = X509_get_subject_name(xs);