httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From André Malo ...@perlig.de>
Subject mod_negotiation: get a rid of atof(3)
Date Sun, 09 Mar 2003 00:43:10 GMT
There's a PR dealing with atof() problems: 
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17564>.

I think, we should simply avoid that function call.
The attached patch does the following:

- quality values are converted by a specialized function atoq.
- level values are no longer parsed as float (instead as int, using atoi). 
According to our documentation this was already intended :)

Do you see any problems with this patch? (especially with the level thing? 
(Does anybody actually use it?))

nd
-- 
package Hacker::Perl::Another::Just;print
qq~@{[reverse split/::/ =>__PACKAGE__]}~;

#  André Malo  #  http://pub.perlig.de  #

Mime
View raw message