www-apache-bugdb mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steve Drach <dr...@sun.com>
Subject mod_jserv/5268: jserv_mmap.c fails to compile
Date Mon, 08 Nov 1999 00:14:28 GMT

>Number:         5268
>Category:       mod_jserv
>Synopsis:       jserv_mmap.c fails to compile
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    jserv
>State:          open
>Class:          sw-bug
>Submitter-Id:   apache
>Arrival-Date:   Sun Nov  7 16:20:01 PST 1999
>Last-Modified:
>Originator:     drach@sun.com
>Organization:
apache
>Release:        Apache/1.3.9 (Unix) ApacheJServ/1.1b3
>Environment:
SunOS 5.7 Generic_106541-08 sun4u sparc SUNW,Ultra-2
java version "1.1.7"
cc: WorkShop Compilers 4.2 30 Oct 1996 C 4.2 
 
>Description:
The following two procedures are not supposed to return a value but they do:

void jserv_setalive(jserv_config *cfg, jserv_host *cur) {
        /* we do not override admin commands (state=SHUTDOWN*) */
        return jserv_changestate(cfg, cur, "-", '+');
}

void jserv_setdead(jserv_config *cfg, jserv_host *cur) {
        /* we do not override admin commands (state=SHUTDOWN*) */
        return jserv_changestate(cfg, cur, "+", '-');
}

-----------------------------------------
 In procedure jserv_getnext_host the following cast creates a problem since
it's not an lvalue:

(int)shmhost->opaque += 1;
>How-To-Repeat:
N/A
>Fix:
Remove the "return"s and the (int) cast.
>Audit-Trail:
>Unformatted:
[In order for any reply to be added to the PR database, you need]
[to include <apbugs@Apache.Org> in the Cc line and make sure the]
[subject line starts with the report component and number, with ]
[or without any 'Re:' prefixes (such as "general/1098:" or      ]
["Re: general/1098:").  If the subject doesn't match this       ]
[pattern, your message will be misfiled and ignored.  The       ]
["apbugs" address is not added to the Cc line of messages from  ]
[the database automatically because of the potential for mail   ]
[loops.  If you do not include this Cc, your reply may be ig-   ]
[nored unless you are responding to an explicit request from a  ]
[developer.  Reply only with text; DO NOT SEND ATTACHMENTS!     ]




Mime
View raw message