diff --git a/lib/ftp.c b/lib/ftp.c
index e85cc9833890e844165a48fe085865caae01dc9e..da67ecb865ea6ba5a2b2d4f9191f9b50e25fcb13 100644
--- a/lib/ftp.c
+++ b/lib/ftp.c
@@ -77,7 +77,6 @@
 #include "if2ip.h"
 #include "hostip.h"
 #include "progress.h"
-#include "upload.h"
 #include "download.h"
 #include "escape.h"
 
diff --git a/lib/http.c b/lib/http.c
index 49d47b3a5e527f339d7694cf754deee290f29983..38b07b6ad8369fa513c952d2c602f69847c17015 100644
--- a/lib/http.c
+++ b/lib/http.c
@@ -93,7 +93,6 @@
 #include "formdata.h"
 #include "progress.h"
 #include "base64.h"
-#include "upload.h"
 #include "cookie.h"
 
 #define _MPRINTF_REPLACE /* use our functions only */
@@ -320,7 +319,7 @@ UrgError http(struct UrlData *data, char *ppath, char *host, long *bytecount)
         ProgressInit(data, postsize);
 
         result = Transfer(data, data->firstsocket, -1, TRUE, &readbytecount,
-                          data->firstsocket, writebytecount);
+                          data->firstsocket, &writebytecount);
         *bytecount = readbytecount + writebytecount;
 
         FormFree(sendit); /* Now free that whole lot */