diff options
author | Bill Meier <wmeier@newsguy.com> | 2011-04-27 05:18:58 +0000 |
---|---|---|
committer | Bill Meier <wmeier@newsguy.com> | 2011-04-27 05:18:58 +0000 |
commit | f8b004eb292e7ce96044ed5cc5271912dd498ff5 (patch) | |
tree | 77ce22b84bb40adbf224a1184cd471d6ffce8de5 /epan/dissectors/packet-aim-ssi.c | |
parent | 64a342eca727680a5af7fb515aab246c11c2aff3 (diff) |
From Yaniv Kaul: some 'set but not used' compilation fixes.
From me:
- remove unneeded #include <stdlib.h> and <ctype.h>;
- Fix some indentation in the file.
svn path=/trunk/; revision=36891
Diffstat (limited to 'epan/dissectors/packet-aim-ssi.c')
-rw-r--r-- | epan/dissectors/packet-aim-ssi.c | 23 |
1 files changed, 10 insertions, 13 deletions
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 <stdlib.h> -#include <ctype.h> - #include <glib.h> #include <epan/packet.h> @@ -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; |