diff --git a/lib/highlevel.c b/lib/highlevel.c
index da3f4c94b61a35e48cfbb5e13e2b9e0255543abd..18c3c87286e6cd40c0568a598bd1774e1aa6d64a 100644
--- a/lib/highlevel.c
+++ b/lib/highlevel.c
@@ -84,9 +84,6 @@
 #include <sys/select.h>
 #endif
 
-#ifndef HAVE_VPRINTF
-#error "We can't compile without vprintf() support!"
-#endif
 #ifndef HAVE_SELECT
 #error "We can't compile without select() support!"
 #endif
@@ -517,7 +514,7 @@ _Transfer(struct connectdata *c_conn)
 
           char scratch[BUFSIZE * 2];
           int i, si;
-          int bytes_written;
+          size_t bytes_written;
 
           if(data->crlf)
             buf = data->buffer; /* put it back on the buffer */