soc.2010.msn-tlc: 8dd895e3: Avoid magic numbers.

masca at cpw.pidgin.im masca at cpw.pidgin.im
Fri Jun 11 12:52:11 EDT 2010


-----------------------------------------------------------------
Revision: 8dd895e308adc6bac99f43c5e04d5e00b208d541
Ancestor: ef492fed05ca0246b8619c35e5c2b7c0b3639eef
Author: masca at cpw.pidgin.im
Date: 2010-06-09T23:03:34
Branch: im.pidgin.soc.2010.msn-tlc
URL: http://d.pidgin.im/viewmtn/revision/info/8dd895e308adc6bac99f43c5e04d5e00b208d541

Modified files:
        libpurple/protocols/msn/slpmsg.c

ChangeLog: 

Avoid magic numbers.

-------------- next part --------------
============================================================
--- libpurple/protocols/msn/slpmsg.c	99dd7d9f8a010d85f499fdced91be98fd3124d3b
+++ libpurple/protocols/msn/slpmsg.c	6ed98a51527fcf876f12fe498a861621f8456dd2
@@ -176,14 +176,14 @@ msn_slpmsg_show(MsnMessage *msg)
 
 	switch (flags)
 	{
-		case 0x0:
+		case P2P_NO_FLAG :
 			info = "SLP CONTROL";
 			text = TRUE;
 			break;
-		case 0x2:
+		case P2P_ACK:
 			info = "SLP ACK"; break;
-		case 0x20:
-		case 0x1000030:
+		case P2P_MSN_OBJ_DATA:
+		case P2P_FILE_DATA:
 			info = "SLP DATA"; break;
 		default:
 			info = "SLP UNKNOWN"; break;


More information about the Commits mailing list