Use off_t instead of size_t to pass file size and print it using %lld when
authorkettenis <kettenis@openbsd.org>
Wed, 20 May 2015 09:28:47 +0000 (09:28 +0000)
committerkettenis <kettenis@openbsd.org>
Wed, 20 May 2015 09:28:47 +0000 (09:28 +0000)
commitd1cfc522a6e90037d0514da158849c283b0f2e26
tree60212606022cb664a7e7a35392db7dd58434d76d
parent13da665488d68a5b20a68abc846fb1610cd97fa9
Use off_t instead of size_t to pass file size and print it using %lld when
constructing the Content-Length header field.  Should fix some, but probably
not all, problems with serving files bigger than 2G on 32-bit architectures.

ok reyk@, florian@
usr.sbin/httpd/httpd.h
usr.sbin/httpd/server_http.c