summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
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;