summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorBen Longbons <b.r.longbons@gmail.com>2013-04-06 17:25:56 -0700
committerBen Longbons <b.r.longbons@gmail.com>2013-04-09 17:38:28 -0700
commit756085f91d0f01c69550735cf2e60cae54d9c72a (patch)
tree4aa08505fe01fbb7265e5798d86355229b4b5e93 /src/common
parent9c13169778f55eec42fde14e12b2cc3c2f601c4e (diff)
downloadtmwa-756085f91d0f01c69550735cf2e60cae54d9c72a.tar.gz
tmwa-756085f91d0f01c69550735cf2e60cae54d9c72a.tar.bz2
tmwa-756085f91d0f01c69550735cf2e60cae54d9c72a.tar.xz
tmwa-756085f91d0f01c69550735cf2e60cae54d9c72a.zip
Native amd64 support
Diffstat (limited to 'src/common')
-rw-r--r--src/common/sanity.hpp10
-rw-r--r--src/common/socket.cpp2
2 files changed, 3 insertions, 9 deletions
diff --git a/src/common/sanity.hpp b/src/common/sanity.hpp
index 8271ef8..e54739f 100644
--- a/src/common/sanity.hpp
+++ b/src/common/sanity.hpp
@@ -44,17 +44,11 @@
# endif // compiler and not library
# endif // __GNUC__ == 4
-# ifndef __i386__
+# if not defined(__i386__) and not defined(__x86_64__)
// Known platform dependencies:
// endianness for the [RW]FIFO.* macros
// possibly, some signal-handling
-# error "Unsupported platform"
+# error "Unsupported platform use x86 / amd64 only"
# endif // not __i386__
-# ifdef __x86_64__
-// I'm working on it - I know there are some pointer-size assumptions.
-# error "Sorry, this code is believed not to be 64-bit safe"
-# error "please compile with -m32"
-# endif // __x86_64__
-
#endif // SANITY_HPP
diff --git a/src/common/socket.cpp b/src/common/socket.cpp
index ac5a17d..96de47c 100644
--- a/src/common/socket.cpp
+++ b/src/common/socket.cpp
@@ -324,7 +324,7 @@ void WFIFOSET(int fd, size_t len)
if (s->wdata_size + len + 16384 > s->max_wdata)
{
realloc_fifo(fd, s->max_rdata, s->max_wdata << 1);
- PRINTF("socket: %d wdata expanded to %d bytes.\n", fd, s->max_wdata);
+ PRINTF("socket: %d wdata expanded to %zu bytes.\n", fd, s->max_wdata);
}
if (s->wdata_size + len + 2048 < s->max_wdata)
s->wdata_size += len;