diff src/protocols/gg/libgg.c @ 6063:5239a3b4ab33

[gaim-migrate @ 6513] clean up a lot of compiler warnings. Hopefully I didn't break anything too badly. committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Tue, 08 Jul 2003 06:11:49 +0000
parents 059d95c67cda
children 9860b81548d8
line wrap: on
line diff
--- a/src/protocols/gg/libgg.c	Tue Jul 08 04:23:24 2003 +0000
+++ b/src/protocols/gg/libgg.c	Tue Jul 08 06:11:49 2003 +0000
@@ -1,4 +1,4 @@
-/* $Id: libgg.c 6304 2003-06-14 23:21:02Z chipx86 $ */
+/* $Id: libgg.c 6513 2003-07-08 06:11:49Z faceprint $ */
 
 /*
  *  (C) Copyright 2001 Wojtek Kaniewski <wojtekka@irc.pl>,
@@ -73,7 +73,7 @@
 #ifdef __GNUC__
 __attribute__ ((unused))
 #endif
-= "$Id: libgg.c 6304 2003-06-14 23:21:02Z chipx86 $";
+= "$Id: libgg.c 6513 2003-07-08 06:11:49Z faceprint $";
 
 #endif 
 
@@ -253,7 +253,7 @@
 				return NULL;
 			}
 			if (errno != EINTR) {
-//				errno = EINVAL;
+				/* errno = EINVAL; */
 				free(buf);
 				return NULL;
 			}
@@ -529,7 +529,7 @@
  *
  * w przypadku błędu zwraca -1, inaczej numer sekwencyjny.
  */
-int gg_send_message(struct gg_session *sess, int msgclass, uin_t recipient, unsigned char *message)
+int gg_send_message(struct gg_session *sess, int msgclass, uin_t recipient, char *message)
 {
 	struct gg_send_msg s;
 
@@ -750,7 +750,7 @@
 		return -1;
 	}
 
-	p = (void*) h + sizeof(struct gg_header);
+	p = h + sizeof(struct gg_header);
 	
 	if (h->type == GG_RECV_MSG) {
 		struct gg_recv_msg *r = p;
@@ -926,7 +926,7 @@
 		case GG_STATE_CONNECTING:
 		{
 			char buf[1024];
-			int res, res_size = sizeof(res);
+			unsigned int res, res_size = sizeof(res);
 
 			gg_debug(GG_DEBUG_MISC, "== GG_STATE_CONNECTING\n");
 
@@ -1074,7 +1074,7 @@
 
 		case GG_STATE_CONNECTING_GG:
 		{
-			int res, res_size = sizeof(res);
+			unsigned int res, res_size = sizeof(res);
 
 			gg_debug(GG_DEBUG_MISC, "== GG_STATE_CONNECTING_GG\n");
 
@@ -1131,7 +1131,7 @@
 				break;
 			}
 	
-			w = (void*) h + sizeof(struct gg_header);
+			w = (struct gg_welcome *)(h + sizeof(struct gg_header));
 			w->key = fix32(w->key);
 
 			for (hash = 1; *password; password++)