changeset 30788:be70da54f563

Avoid magic numbers.
author masca@cpw.pidgin.im
date Wed, 09 Jun 2010 23:03:34 +0000
parents 155db1253acf
children 2c3d7104ef1e
files libpurple/protocols/msn/slpmsg.c
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/msn/slpmsg.c	Wed Jun 09 22:59:16 2010 +0000
+++ b/libpurple/protocols/msn/slpmsg.c	Wed Jun 09 23:03:34 2010 +0000
@@ -176,14 +176,14 @@
 
 	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;