From: Henrik Nordstrom Date: Thu, 22 Oct 2009 21:34:59 +0000 (+0200) Subject: Correct squidclient 64-bit POST fix that should work on 32-bit LFS systems as well X-Git-Tag: SQUID_3_2_0_1~648 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=173bc2bf00f97f1b7034a5982a38cfde0d61ca98;p=thirdparty%2Fsquid.git Correct squidclient 64-bit POST fix that should work on 32-bit LFS systems as well --- diff --git a/tools/squidclient.cc b/tools/squidclient.cc index 9dd8a8e4ed..3e2f99461b 100644 --- a/tools/squidclient.cc +++ b/tools/squidclient.cc @@ -84,6 +84,8 @@ using namespace Squid; #include #endif +#include "squid_types.h" + #include "util.h" #include "ip/IpAddress.h" @@ -387,7 +389,7 @@ main(int argc, char *argv[]) strcat(msg, buf); } if (put_fd > 0) { - snprintf(buf, BUFSIZ, "Content-length: %ld\r\n", (long int) sb.st_size); + snprintf(buf, BUFSIZ, "Content-length: %" PRId64 "\r\n", (int64_t) sb.st_size); strcat(msg, buf); } if (opt_noaccept == 0) {