]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Correct squidclient 64-bit POST fix that should work on 32-bit LFS systems as well
authorHenrik Nordstrom <henrik@henriknordstrom.net>
Thu, 22 Oct 2009 21:34:59 +0000 (23:34 +0200)
committerHenrik Nordstrom <henrik@henriknordstrom.net>
Thu, 22 Oct 2009 21:34:59 +0000 (23:34 +0200)
tools/squidclient.cc

index 9dd8a8e4edad5251fbe5f7b165782a21c560f479..3e2f99461b192d02380796e4c6810adc788fd448 100644 (file)
@@ -84,6 +84,8 @@ using namespace Squid;
 #include <getopt.h>
 #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) {