Fix more warnings

svn path=/trunk/; revision=21286
This commit is contained in:
Stephen Fisher 2007-03-30 21:20:57 +00:00
parent de51386b22
commit 763a80f5bb
5 changed files with 7 additions and 6 deletions

View File

@ -1457,7 +1457,6 @@ int
PIDL_dissect_wchar_cvstring(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, guint8 *drep, int hfindex, guint32 param)
{
header_field_info *hf_info;
dcerpc_info *di = (dcerpc_info *)pinfo->private_data;
hf_info=proto_registrar_get_nth(hfindex);
@ -2553,7 +2552,7 @@ dissect_dcerpc_cn_bind (tvbuff_t *tvb, gint offset, packet_info *pinfo,
dcerpc_auth_info auth_info;
char *uuid_str;
const char *uuid_name = NULL;
proto_item *iface_item;
proto_item *iface_item = NULL;
offset = dissect_dcerpc_uint16 (tvb, offset, pinfo, dcerpc_tree, hdr->drep,
hf_dcerpc_cn_max_xmit, NULL);
@ -2571,7 +2570,7 @@ dissect_dcerpc_cn_bind (tvbuff_t *tvb, gint offset, packet_info *pinfo,
offset += 3;
for (i = 0; i < num_ctx_items; i++) {
proto_item *ctx_item;
proto_item *ctx_item = NULL;
proto_tree *ctx_tree = NULL, *iface_tree = NULL;
gint ctx_offset = offset;

View File

@ -336,7 +336,7 @@ h263_proto_tree_add_bits(proto_tree *tree, int hf_index, tvbuff_t *tvb, gint bit
header_field_info *hfinfo;
guint32 value = 0;
int bit;
guint32 mask, tmp;
guint32 mask = 0, tmp;
gboolean is_bytealigned = FALSE;
guint8 mask8 = 0xff;
guint16 mask16 = 0xffff;

View File

@ -283,7 +283,7 @@ get_unicode_or_ascii_string(tvbuff_t *tvb, int *offsetp,
{
gchar *cur;
const gchar *string;
int string_len;
int string_len = 0;
int copylen;
gboolean overflow = FALSE;

View File

@ -2634,7 +2634,7 @@ dissect_pipe_lanman(tvbuff_t *pd_tvb, tvbuff_t *p_tvb, tvbuff_t *d_tvb,
const gchar *param_descrip, *data_descrip, *aux_data_descrip = NULL;
gboolean has_data;
gboolean has_ent_count;
guint16 ent_count, aux_count;
guint16 ent_count = 0, aux_count;
guint i;
proto_item *data_item;
proto_tree *data_tree;

View File

@ -8080,6 +8080,8 @@ dissect_nt_transaction_request(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree
guint32 padcnt;
smb_nt_transact_info_t *nti=NULL;
ntd.subcmd = ntd.sd_len = ntd.ea_len = 0;
si = (smb_info_t *)pinfo->private_data;
DISSECTOR_ASSERT(si);
sip = si->sip;