--- gnet-2.0.7/src/md5.c.orig	2005-12-01 22:34:08.000000000 -0800
+++ gnet-2.0.7/src/md5.c	2005-12-01 22:38:37.000000000 -0800
@@ -331,7 +331,7 @@
 
   md5 = g_new0 (GMD5, 1);
   MD5Init (&md5->ctx);
-  MD5Update (&md5->ctx, buffer, length);
+  MD5Update (&md5->ctx, (void*) buffer, length);
   MD5Final ((gpointer) &md5->digest, &md5->ctx);
 
   return md5;
@@ -481,7 +481,7 @@
 {
   g_return_if_fail (md5);
 
-  MD5Update (&md5->ctx, buffer, length);
+  MD5Update (&md5->ctx, (void*) buffer, length);
 }
 
 
--- gnet-2.0.7/src/sha.c.orig	2005-12-01 22:33:55.000000000 -0800
+++ gnet-2.0.7/src/sha.c	2005-12-01 22:40:19.000000000 -0800
@@ -454,7 +454,7 @@
 
   sha = g_new0 (GSHA, 1);
   SHAInit (&sha->ctx);
-  SHAUpdate (&sha->ctx, buffer, length);
+  SHAUpdate (&sha->ctx, (void*) buffer, length);
   SHAFinal ((gpointer) &sha->digest, &sha->ctx);
 
   return sha;
@@ -606,7 +606,7 @@
 {
   g_return_if_fail (sha);
 
-  SHAUpdate (&sha->ctx, buffer, length);
+  SHAUpdate (&sha->ctx, (void*) buffer, length);
 }
 
 
--- gnet-2.0.7/src/tcp.c.orig	2005-12-01 22:33:11.000000000 -0800
+++ gnet-2.0.7/src/tcp.c	2005-12-01 22:34:59.000000000 -0800
@@ -489,7 +489,7 @@
   len = sizeof(error);
 
   /* Get the error option */
-  if (getsockopt(state->socket->sockfd, SOL_SOCKET, SO_ERROR, (void*) &error, &len) < 0)
+  if (getsockopt(state->socket->sockfd, SOL_SOCKET, SO_ERROR, (void*) &error, (void*) &len) < 0)
     {
       g_warning ("getsockopt() failed");
       goto error;
--- gnet-2.0.7/src/udp.c.orig	2005-12-01 22:33:26.000000000 -0800
+++ gnet-2.0.7/src/udp.c	2005-12-01 22:35:56.000000000 -0800
@@ -336,7 +336,7 @@
 
   bytes_received = recvfrom (socket->sockfd, 
 			     (void*) buffer, length, 
-			     0, (struct sockaddr*) &sa, &sa_len);
+			     0, (struct sockaddr*) &sa, (void*) &sa_len);
 
   if (bytes_received == -1)
     return -1;
