RE: Question on ap_method_* functions
-Original Message- From: Christophe JAILLET [mailto:christophe.jail...@wanadoo.fr] Sent: Montag, 14. Juli 2014 22:55 To: dev@httpd.apache.org Subject: Question on ap_method_* functions Hi, I was about to submit a patch in order to remove the 'register' keyword in a variable declaration in 'modules/http/http_protocol.c'. See 'ap_method_list_remove()' I also wanted to simplify code in the surrounding ap_method_* functions. However, I think that: - in 'ap_method_list_add()', l-method_mask |= (AP_METHOD_BIT methnum); should be in the if (methnum != M_INVALID) { ... } block - in 'ap_method_list_remove()', l-method_mask |= ~(AP_METHOD_BIT methnum); Doesn't this need to be l-method_mask = ~(AP_METHOD_BIT methnum); in order to remove it? Otherwise I set all methods but methnum. should be in the if (methnum != M_INVALID) { ... } block Do you agree ? Yes. Regards Rüdiger
Re: Question on ap_method_* functions
Le 15/07/2014 10:15, Plüm, Rüdiger, Vodafone Group a écrit : - in 'ap_method_list_remove()', l-method_mask |= ~(AP_METHOD_BIT methnum); Doesn't this need to be l-method_mask = ~(AP_METHOD_BIT methnum); in order to remove it? Otherwise I set all methods but methnum. should be in the if (methnum != M_INVALID) { ... } block Do you agree ? Yes. Regards Rüdiger Thanks for your comment. Applied to trunk in r1610813 with your comment. Proposed for 2.4.x. Best regards, CJ
Question on ap_method_* functions
Hi, I was about to submit a patch in order to remove the 'register' keyword in a variable declaration in 'modules/http/http_protocol.c'. See 'ap_method_list_remove()' I also wanted to simplify code in the surrounding ap_method_* functions. However, I think that: - in 'ap_method_list_add()', l-method_mask |= (AP_METHOD_BIT methnum); should be in the if (methnum != M_INVALID) { ... } block - in 'ap_method_list_remove()', l-method_mask |= ~(AP_METHOD_BIT methnum); should be in the if (methnum != M_INVALID) { ... } block Do you agree ? Best regards, CJ