cpw.qulogic.msnp16: db51c4df: Fix a few little things.

qulogic at pidgin.im qulogic at pidgin.im
Sat Mar 13 04:10:43 EST 2010


-----------------------------------------------------------------
Revision: db51c4df40b48af0a8ca3e73dbe5520b87a599fc
Ancestor: ec86c38c8972db91610a5b7beb2dc49a98e1810e
Author: qulogic at pidgin.im
Date: 2010-03-13T08:09:32
Branch: im.pidgin.cpw.qulogic.msnp16
URL: http://d.pidgin.im/viewmtn/revision/info/db51c4df40b48af0a8ca3e73dbe5520b87a599fc

Modified files:
        libpurple/protocols/msn/command.h
        libpurple/protocols/msn/msn.c
        libpurple/protocols/msn/notification.c

ChangeLog: 

Fix a few little things.

-------------- next part --------------
============================================================
--- libpurple/protocols/msn/command.h	cbcd7ca18db266caa308440f0c8bb581a59094ca
+++ libpurple/protocols/msn/command.h	abf8374ebbabe161d9c8ffa0676e7a0bbafebb5d
@@ -63,17 +63,16 @@ MsnCommand *msn_command_from_string(cons
  */
 MsnCommand *msn_command_from_string(const char *string);
 
-
 /**
- * Destroy a MsnCommand object. If it's being used by someone else,
- * it just unref the object and return.
+ * Destroy a MsnCommand object if its ref count is zero, otherwise
+ * just unref it.
  *
  * @param cmd 	The MsnCommand to be destroyed.
  */
 void msn_command_destroy(MsnCommand *cmd);
 
 /**
- * Add 1 to the ref count.
+ * Increment the ref count.
  *
  * @param cmd 	The MsnCommand to be ref.
  *
@@ -82,7 +81,7 @@ MsnCommand *msn_command_ref(MsnCommand *
 MsnCommand *msn_command_ref(MsnCommand *cmd);
 
 /**
- * Substrac 1 to the ref count. If the count goes to 0, destroy it.
+ * Decrement the ref count. If the count goes to 0, destroy it.
  *
  * @param cmd	The MsnCommand to be unref.
  *
============================================================
--- libpurple/protocols/msn/msn.c	a53b7c44f59a8ca2a48a66b2078795df80ce2e54
+++ libpurple/protocols/msn/msn.c	cfa813b7d4037d34156f871662e9dfa1b4b4724c
@@ -252,7 +252,7 @@ msn_set_prp(PurpleConnection *gc, const 
 		trans = msn_transaction_new(cmdproc, "PRP", "%s %s", type,
 						 purple_url_encode(entry));
 	}
-		msn_cmdproc_send_trans(cmdproc, trans);
+	msn_cmdproc_send_trans(cmdproc, trans);
 }
 
 static void
============================================================
--- libpurple/protocols/msn/notification.c	295ca84645a68f070e9591264a15394b122b2344
+++ libpurple/protocols/msn/notification.c	97aed0025a1dd50c9cb018a047d4cc125b80e8fa
@@ -311,7 +311,7 @@ msn_notification_close(MsnNotification *
 	if (!notification->in_use)
 		return;
 
-	trans = msn_transaction_new(notification->cmdproc, "OUT", NULL, NULL);
+	trans = msn_transaction_new(notification->cmdproc, "OUT", NULL);
 	msn_transaction_set_send_trId(trans, FALSE);
 	msn_cmdproc_send_trans(notification->cmdproc, trans);
 


More information about the Commits mailing list