From f8b004eb292e7ce96044ed5cc5271912dd498ff5 Mon Sep 17 00:00:00 2001 From: Bill Meier Date: Wed, 27 Apr 2011 05:18:58 +0000 Subject: From Yaniv Kaul: some 'set but not used' compilation fixes. From me: - remove unneeded #include and ; - Fix some indentation in the file. svn path=/trunk/; revision=36891 --- epan/dissectors/packet-aim-ssi.c | 23 ++++++++++------------- 1 file changed, 10 insertions(+), 13 deletions(-) (limited to 'epan/dissectors/packet-aim-ssi.c') diff --git a/epan/dissectors/packet-aim-ssi.c b/epan/dissectors/packet-aim-ssi.c index 73529e54a7..fcb6829efa 100644 --- a/epan/dissectors/packet-aim-ssi.c +++ b/epan/dissectors/packet-aim-ssi.c @@ -28,9 +28,6 @@ # include "config.h" #endif -#include -#include - #include #include @@ -50,14 +47,14 @@ #define FAMILY_SSI_TYPE_ICONINFO 0x0014 static const value_string aim_fnac_family_ssi_types[] = { - { FAMILY_SSI_TYPE_BUDDY, "Buddy" }, - { FAMILY_SSI_TYPE_GROUP, "Group" }, - { FAMILY_SSI_TYPE_PERMIT, "Permit" }, - { FAMILY_SSI_TYPE_DENY, "Deny" }, - { FAMILY_SSI_TYPE_PDINFO, "PDINFO" }, - { FAMILY_SSI_TYPE_PRESENCEPREFS, "Presence Preferences" }, - { FAMILY_SSI_TYPE_ICONINFO, "Icon Info" }, - { 0, NULL } + { FAMILY_SSI_TYPE_BUDDY, "Buddy" }, + { FAMILY_SSI_TYPE_GROUP, "Group" }, + { FAMILY_SSI_TYPE_PERMIT, "Permit" }, + { FAMILY_SSI_TYPE_DENY, "Deny" }, + { FAMILY_SSI_TYPE_PDINFO, "PDINFO" }, + { FAMILY_SSI_TYPE_PRESENCEPREFS, "Presence Preferences" }, + { FAMILY_SSI_TYPE_ICONINFO, "Icon Info" }, + { 0, NULL } }; #define SSI_RIGHTSINFO_TLV_MAX_ITEMS 0x0004 @@ -236,7 +233,7 @@ static int dissect_aim_snac_ssi_auth_request(tvbuff_t *tvb, packet_info *pinfo _ { int offset = 0; guint16 reason_length; - guint16 unknown; + /*guint16 unknown;*/ /* get buddy length (1 byte) */ guint8 buddyname_length = tvb_get_guint8(tvb, offset); @@ -260,7 +257,7 @@ static int dissect_aim_snac_ssi_auth_request(tvbuff_t *tvb, packet_info *pinfo _ } /* unknown (always 0x0000 ???) */ - unknown = tvb_get_ntohs(tvb, offset); + /*unknown = tvb_get_ntohs(tvb, offset);*/ proto_tree_add_item(tree, hf_aim_fnac_subtype_ssi_grant_auth_unkn, tvb, offset, 2, FALSE); offset += 2; -- cgit v1.2.3