changeset 10388:088633feb846

[gaim-migrate @ 11615] this makes gcc shut up about some warnings committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Thu, 16 Dec 2004 03:50:54 +0000
parents 00cd0c08bb04
children c432b927b0b1
files src/protocols/gg/gg.c src/protocols/gg/libgg.c src/protocols/gg/libgg.h src/protocols/irc/dcc_send.c src/protocols/msn/directconn.c src/protocols/msn/slplink.c src/protocols/msn/user.c
diffstat 7 files changed, 14 insertions(+), 14 deletions(-) [+]
line wrap: on
line diff
--- a/src/protocols/gg/gg.c	Thu Dec 16 02:51:14 2004 +0000
+++ b/src/protocols/gg/gg.c	Thu Dec 16 03:50:54 2004 +0000
@@ -1,6 +1,6 @@
 /*
  * gaim - Gadu-Gadu Protocol Plugin
- * $Id: gg.c 11327 2004-11-19 03:46:15Z thekingant $
+ * $Id: gg.c 11615 2004-12-16 03:50:54Z faceprint $
  *
  * Copyright (C) 2001 Arkadiusz Mi¶kiewicz <misiek@pld.ORG.PL>
  *
@@ -1512,7 +1512,7 @@
 }
 #endif
 
-static void agg_change_passwd(GaimConnection *gc, const char *old, const char *new)
+static void agg_change_passwd(GaimConnection *gc, const unsigned char *old, const unsigned char *new)
 {
 	struct agg_http *hpass = g_new0(struct agg_http, 1);
 	gchar *u = gg_urlencode(gaim_account_get_username(gc->account));
--- a/src/protocols/gg/libgg.c	Thu Dec 16 02:51:14 2004 +0000
+++ b/src/protocols/gg/libgg.c	Thu Dec 16 03:50:54 2004 +0000
@@ -1,4 +1,4 @@
-/* $Id: libgg.c 11554 2004-12-11 00:06:06Z thekingant $ */
+/* $Id: libgg.c 11615 2004-12-16 03:50:54Z faceprint $ */
 
 /*
  *  (C) Copyright 2001 Wojtek Kaniewski <wojtekka@irc.pl>,
@@ -70,7 +70,7 @@
 #ifdef __GNUC__
 __attribute__ ((unused))
 #endif
-= "$Id: libgg.c 11554 2004-12-11 00:06:06Z thekingant $";
+= "$Id: libgg.c 11615 2004-12-16 03:50:54Z faceprint $";
 
 #endif 
 
@@ -1461,7 +1461,7 @@
 			struct gg_welcome *w;
 			struct gg_login60 l;
 			unsigned int hash;
-			char *password = sess->password;
+			unsigned char *password = sess->password;
 
 			gg_debug(GG_DEBUG_MISC, "== GG_STATE_READING_KEY\n");
 
--- a/src/protocols/gg/libgg.h	Thu Dec 16 02:51:14 2004 +0000
+++ b/src/protocols/gg/libgg.h	Thu Dec 16 03:50:54 2004 +0000
@@ -1,4 +1,4 @@
-/* $Id: libgg.h 11554 2004-12-11 00:06:06Z thekingant $ */
+/* $Id: libgg.h 11615 2004-12-16 03:50:54Z faceprint $ */
 
 /*
  *  (C) Copyright 2001 Wojtek Kaniewski <wojtekka@irc.pl>,
@@ -60,7 +60,7 @@
 	int client_port;	/* port, na którym klient słucha */
 
 	uin_t uin;		/* numerek klienta */
-	char *password;		/* i jego hasło. zwalniane automagicznie */
+	unsigned char *password;		/* i jego hasło. zwalniane automagicznie */
         
 	int initial_status;	/* pocz±tkowy stan klienta */
 
--- a/src/protocols/irc/dcc_send.c	Thu Dec 16 02:51:14 2004 +0000
+++ b/src/protocols/irc/dcc_send.c	Thu Dec 16 03:50:54 2004 +0000
@@ -194,7 +194,7 @@
 
 		xd->rxlen -= 4;
 		if (xd->rxlen) {
-			char *tmp = g_memdup(xd->rxqueue + 4, xd->rxlen);
+			unsigned char *tmp = g_memdup(xd->rxqueue + 4, xd->rxlen);
 			g_free(xd->rxqueue);
 			xd->rxqueue = tmp;
 		} else {
--- a/src/protocols/msn/directconn.c	Thu Dec 16 02:51:14 2004 +0000
+++ b/src/protocols/msn/directconn.c	Thu Dec 16 03:50:54 2004 +0000
@@ -374,7 +374,7 @@
 	else
 	{
 		struct sockaddr_in client_addr;
-		int client;
+		unsigned int client;
 		fd = accept (source, (struct sockaddr *)&client_addr, &client);
 	}
 
--- a/src/protocols/msn/slplink.c	Thu Dec 16 02:51:14 2004 +0000
+++ b/src/protocols/msn/slplink.c	Thu Dec 16 03:50:54 2004 +0000
@@ -631,14 +631,14 @@
 
 #define MAX_FILE_NAME_LEN 0x226
 
-static char *
+static unsigned char *
 gen_context(const char *file_name, const char *file_path)
 {
 	struct stat st;
 	gsize size = 0;
 	MsnContextHeader header;
 	gchar *u8 = NULL;
-	gchar *base, *n;
+	guchar *base, *n;
 	gunichar2 *uni = NULL;
 	glong currentChar = 0;
 	glong uni_len = 0;
@@ -732,8 +732,8 @@
 						   const MsnObject *obj)
 {
 	MsnSlpCall *slpcall;
-	char *msnobj_data;
-	char *msnobj_base64;
+	unsigned char *msnobj_data;
+	unsigned char *msnobj_base64;
 
 	g_return_if_fail(slplink != NULL);
 	g_return_if_fail(obj     != NULL);
--- a/src/protocols/msn/user.c	Thu Dec 16 02:51:14 2004 +0000
+++ b/src/protocols/msn/user.c	Thu Dec 16 03:50:54 2004 +0000
@@ -136,7 +136,7 @@
 		unsigned char *buf;
 		SHA_CTX ctx;
 		gsize len;
-		char *base64;
+		unsigned char *base64;
 		unsigned char digest[20];
 
 		if (msnobj == NULL)