Commit 5346ef5d authored by Brian Havard's avatar Brian Havard
Browse files

Quiet some warnings.

- 1 'suggest parentheses around assignment used as truth value'
- a few "subscript has type `char'"


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@84519 13f79535-47bb-0310-9956-ffa450edef68
parent d9bed32e
Loading
Loading
Loading
Loading
+1 −1
Changes for modules/http/http_request.c: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -222,7 +222,7 @@ static int get_path_info(request_rec *r)
        char *p;
        int iCount=0;
        p = path;
        while (p = strchr(p,'/')) {
        while ((p = strchr(p,'/')) != NULL) {
            p++;
            iCount++;
        }
+2 −2
Changes for server/vhost.c: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -672,7 +672,7 @@ static void fix_hostname(request_rec *r)
    src = r->hostname;
    dst = host;
    while (*src) {
	if (!isalnum(*src) && *src != '.' && *src != '-') {
	if (!ap_isalnum(*src) && *src != '.' && *src != '-') {
	    if (*src == ':')
		break;
	    else
@@ -684,7 +684,7 @@ static void fix_hostname(request_rec *r)
    /* check the port part */
    if (*src++ == ':') {
	while (*src) {
	    if (!isdigit(*src++)) {
	    if (!ap_isdigit(*src++)) {
		goto bad;
	    }
	}