diff src/protocols/msn/slp.c @ 9198:ab6636c5a136

[gaim-migrate @ 9993] Updated all the copyright headers for all the *.[ch] files -- all 63. No fun, but I receive great satisfaction in knowing that you all have to recompile this, again. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Sun, 06 Jun 2004 03:42:55 +0000
parents 502707ca1836
children 7a00289f2ef1
line wrap: on
line diff
--- a/src/protocols/msn/slp.c	Sun Jun 06 03:30:20 2004 +0000
+++ b/src/protocols/msn/slp.c	Sun Jun 06 03:42:55 2004 +0000
@@ -3,7 +3,9 @@
  *
  * gaim
  *
- * Copyright (C) 2003 Christian Hammond <chipx86@gnupdate.org>
+ * Gaim is the legal property of its developers, whose names are too numerous
+ * to list here.  Please refer to the COPYRIGHT file distributed with this
+ * source distribution.
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -56,7 +58,7 @@
 	{
 		if ((c2 = strstr(c, end)) == NULL)
 			return NULL;
-		
+
 		return g_strndup(c, c2 - c);
 	}
 	else
@@ -127,7 +129,7 @@
 {
 	GaimXfer *xfer;
 
-	xfer = slpcall->xfer;	
+	xfer = slpcall->xfer;
 
 	xfer->bytes_sent = offset;
 	xfer->bytes_remaining = total_length - offset;
@@ -257,19 +259,19 @@
 		type = msn_object_get_type(obj);
 		sha1c = msn_object_get_sha1c(obj);
 		g_free(msnobj_data);
-		
+
 		if (!(type == MSN_OBJECT_USERTILE))
 		{
 			gaim_debug_error("msn", "Wrong object?\n");
 			msn_object_destroy(obj);
 			g_return_if_reached();
 		}
-		
+
 		file_name = msn_object_get_real_location(obj);
 
 		slpsession = msn_slplink_find_slp_session(slplink,
 												   slpcall->session_id);
-		
+
 		/* DATA PREP */
 		slpmsg = msn_slpmsg_new(slplink);
 		slpmsg->slpsession = slpsession;
@@ -282,7 +284,7 @@
 
 		/* DATA */
 		slpmsg = msn_slpmsg_new(slplink);
-		slpmsg->slpsession = slpsession;		
+		slpmsg->slpsession = slpsession;
 		slpmsg->flags = 0x20;
 #ifdef DEBUG_SLP
 		slpmsg->info = "SLP DATA";
@@ -381,11 +383,11 @@
 		if (temp != NULL)
 			slpcall->app_id = atoi(temp);
 		g_free(temp);
-		
+
 		context = get_token(content, "Context: ", "\r\n");
 
 		got_sessionreq(slpcall, branch, euf_guid, context);
-		
+
 		g_free(context);
 		g_free(euf_guid);
 	}
@@ -395,7 +397,7 @@
 
 		char *listening, *nonce;
 		char *content;
-		
+
 		if (FALSE)
 		{
 #if 0
@@ -434,7 +436,7 @@
 		{
 			listening = "false";
 			nonce = g_strdup("00000000-0000-0000-0000-000000000000");
-			
+
 			content = g_strdup_printf(
 				"Bridge: TCPv1\r\n"
 				"Listening: %s\r\n"
@@ -457,7 +459,7 @@
 		char *temp;
 		char *nonce;
 		int port;
-		
+
 		nonce = get_token(content, "Nonce: {", "}\r\n");
 		ip_addrs = get_token(content, "IPv4Internal-Addrs: ", "\r\n");
 
@@ -486,7 +488,7 @@
 {
 	g_return_if_fail(slpcall != NULL);
 	g_return_if_fail(type    != NULL);
-			
+
 	if (!strcmp(type, "application/x-msnmsgr-sessionreqbody"))
 	{
 #if 0
@@ -527,7 +529,7 @@
 
 			g_free(header);
 			g_free(content);
-			
+
 			g_free(branch);
 		}
 		else
@@ -550,7 +552,7 @@
 		char *temp;
 		char *nonce;
 		int port;
-		
+
 		nonce = get_token(content, "Nonce: {", "}\r\n");
 		ip_addrs = get_token(content, "IPv4Internal-Addrs: ", "\r\n");
 
@@ -637,7 +639,7 @@
 				strncpy(temp, status, c - status);
 				temp[c - status] = '\0';
 			}
-			
+
 			gaim_debug_error("msn", "Received non-OK result: %s\n", temp);
 
 			slpcall->wasted = TRUE;
@@ -741,7 +743,7 @@
 	gaim_debug_info("msn", "Got User Display: %s\n", info);
 
 	account = slpcall->slplink->session->account;
-	
+
 	/* TODO: I think we need better buddy icon core functions. */
 	gaim_buddy_icons_set_for_user(account, slpcall->slplink->remote_user,
 								  (void *)data, size);
@@ -777,7 +779,7 @@
 	}
 
 	buddy = (GaimBuddy *)sl->data;
-	
+
 	old = gaim_blist_node_get_string((GaimBlistNode *)buddy, "icon_checksum");
 	new = msn_object_get_sha1c(obj);