You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Christophe JAILLET <ch...@wanadoo.fr> on 2012/10/15 21:40:54 UTC

Question about errors in 'mpm_service_install' (server/mpm/winnt/service.c)

Hi,

in the function 'mpm_service_install' in server/mpm/winnt/service.c, 
cppcheck complains on line 596 and line 608 about 'Same expression on 
both sides of '|'.'

596:        ap_log_error(APLOG_MARK, APLOG_ERR|APLOG_ERR,<--- Same 
expression on both sides of '|'.
                          apr_get_os_error(), NULL,
                          "OpenService failed");

608:        ap_log_error(APLOG_MARK, APLOG_ERR|APLOG_ERR,<--- Same 
expression on both sides of '|'.
                          apr_get_os_error(), NULL,
                          "ChangeServiceConfig failed");


According to surrounding code, I assume that the second APLOG_ERR should 
be APLOG_STARTUP.

Any idea ?


Best regards,
CJ