$OpenBSD: patch-src_client_c,v 1.2 2011/10/30 16:05:35 dcoppa Exp $
--- src/client.c.orig	Tue Oct 11 12:44:58 2011
+++ src/client.c	Sun Oct 30 16:33:19 2011
@@ -28,6 +28,7 @@
    NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
    SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 */
+#include <sys/types.h>
 #include <sys/poll.h>
 #include <sys/socket.h>
 #include <fcntl.h>
@@ -195,7 +196,7 @@ void Client_token_free(client_t *client)
 void recheckCodecVersions()
 {
 	client_t *client_itr = NULL;
-	int max = 0, version, current_version;
+	int max = 0, version = 0, current_version = 0;
 	message_t *sendmsg;
 	struct dlist codec_list, *itr, *save;
 	codec_t *codec_itr, *cd;
@@ -560,6 +561,7 @@ int Client_send_message_ver(client_t *client, message_
 		return Client_send_message(client, msg);
 	else
 		Msg_free(msg);
+	return 0;
 }
 
 int Client_send_message(client_t *client, message_t *msg)
