changeset 4455:c7aae8902e5e

[gaim-migrate @ 4730] compile warning fixes committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Wed, 29 Jan 2003 00:19:07 +0000
parents 5e006bb90238
children 1630b1dca931
files src/protocols/msn/msn.c src/protocols/napster/napster.c src/protocols/toc/toc.c
diffstat 3 files changed, 2 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/src/protocols/msn/msn.c	Tue Jan 28 22:36:58 2003 +0000
+++ b/src/protocols/msn/msn.c	Wed Jan 29 00:19:07 2003 +0000
@@ -1961,12 +1961,11 @@
 static void msn_login(struct aim_user *user)
 {
 	struct gaim_connection *gc = new_gaim_conn(user);
-	struct msn_data *md = gc->proto_data = g_new0(struct msn_data, 1);
 
 	set_login_progress(gc, 1, _("Connecting"));
 
 	g_snprintf(gc->username, sizeof(gc->username), "%s", msn_normalize(gc->username));
-	
+
 	if (proxy_connect(user->proto_opt[USEROPT_MSNSERVER][0] ? user->proto_opt[USEROPT_MSNSERVER] : MSN_SERVER, 
 			       user->proto_opt[USEROPT_MSNPORT][0] ? atoi(user->proto_opt[USEROPT_MSNPORT]) : MSN_PORT,
 			       msn_login_connect, gc) != 0) {
--- a/src/protocols/napster/napster.c	Tue Jan 28 22:36:58 2003 +0000
+++ b/src/protocols/napster/napster.c	Wed Jan 29 00:19:07 2003 +0000
@@ -440,9 +440,8 @@
 static void nap_login(struct aim_user *user)
 {
 	struct gaim_connection *gc = new_gaim_conn(user);
-	struct nap_data *ndata = gc->proto_data = g_new0(struct nap_data, 1);
 
-	if (proxy_connect(user->proto_opt[USEROPT_NAPSERVER][0] ? user->proto_opt[USEROPT_NAPSERVER] : NAP_SERVER, 
+	if (proxy_connect(user->proto_opt[USEROPT_NAPSERVER][0] ? user->proto_opt[USEROPT_NAPSERVER] : NAP_SERVER,
 			       user->proto_opt[USEROPT_NAPPORT][0] ? atoi(user->proto_opt[USEROPT_NAPPORT]) : NAP_PORT,
 			       nap_login_connect, gc) != 0) {
 		hide_login_progress(gc, "Unable to connect");
--- a/src/protocols/toc/toc.c	Tue Jan 28 22:36:58 2003 +0000
+++ b/src/protocols/toc/toc.c	Wed Jan 29 00:19:07 2003 +0000
@@ -1666,7 +1666,6 @@
 {
 	struct file_transfer *ft;
 	const char *dirname = gtk_file_selection_get_filename(GTK_FILE_SELECTION(old_ft->window));
-	int fd;
 	struct aim_user *user;
 	char buf[BUF_LEN * 2];