httpd: round down sendfile byte count to 64k

*: style fixes
This commit is contained in:
Denis Vlasenko
2007-08-13 11:09:30 +00:00
parent f5635f4d32
commit 319f8ebef8
5 changed files with 8 additions and 7 deletions

View File

@@ -45,7 +45,7 @@ static unsigned julian;
/* leap year -- account for Gregorian reformation in 1752 */
static int leap_year(unsigned yr)
{
if (yr <= 1752)
if (yr <= 1752)
return !(yr % 4);
return (!(yr % 4) && (yr % 100)) || !(yr % 400);
}