--- libjabber/jconn.c.orig	2010-10-27 04:19:06.000000000 +1100
+++ libjabber/jconn.c	2012-07-18 11:31:22.000000000 +1000
@@ -703,6 +703,7 @@ void *jabber_send_file_fd(void *arg)
 	 
 	pthread_exit(0);
 #endif
+    return NULL;
 }
 
 int next_random( int start_port, int end_port ) //generate random number between two digits
@@ -824,7 +825,7 @@ void *jabber_recieve_file_fd(void *arg)
 		free(hash);
 		close(sock);
 		close(fd_file);
-		return;
+		return NULL;
 	}
 	 
 	recv( sock, buff, SEND_BUF, 0 );
@@ -833,7 +834,7 @@ void *jabber_recieve_file_fd(void *arg)
 		free(hash);
 		close(sock);
 		close(fd_file);
-		return;
+		return NULL;
 	}
 	 
 //socks5 bytestream packet	 
@@ -851,7 +852,7 @@ void *jabber_recieve_file_fd(void *arg)
 		free(hash);
 		close(sock);
 		close(fd_file);
-		return;
+		return NULL;
 	}
 	recv( sock, buff, 47, 0 );
 	if( buff[0] != 0x05 || buff[3] != 0x03 )
@@ -859,7 +860,7 @@ void *jabber_recieve_file_fd(void *arg)
 		free(hash);
 		close(sock);
 		close(fd_file);
-		return;
+		return NULL;
 	}
 
 
@@ -889,6 +890,7 @@ void *jabber_recieve_file_fd(void *arg)
 
 	 
 #endif
+    return NULL;
 }
  
 
@@ -961,5 +963,5 @@ void *jabber_recieve_file_fd_http(void *
  
 	pthread_exit(0);
 #endif
-	 
+	 return NULL;
 }