X-Git-Url: http://git.samba.org/samba.git/?a=blobdiff_plain;f=packet-smb-browse.c;h=d5c78339e3f398724a611fd139c9c37ba8aa5a5f;hb=6e43e56a76bcf2bcfe3a79d29c5dfa39b7ce9faa;hp=26bba10705b423a4854a4db4066e163efe3eb309;hpb=294d78cf40e581e6fac22f76179f3c1dd0e1898d;p=obnox%2Fwireshark%2Fwip.git diff --git a/packet-smb-browse.c b/packet-smb-browse.c index 26bba10705..d5c78339e3 100644 --- a/packet-smb-browse.c +++ b/packet-smb-browse.c @@ -2,7 +2,7 @@ * Routines for SMB Browser packet dissection * Copyright 1999, Richard Sharpe * - * $Id: packet-smb-browse.c,v 1.34 2003/11/19 03:53:32 guy Exp $ + * $Id: packet-smb-browse.c,v 1.36 2004/01/19 20:10:36 jmayer Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs @@ -37,7 +37,6 @@ #include #include #include "smb.h" -#include "alignment.h" #include "packet-smb-browse.h" #include "packet-dcerpc.h" @@ -464,7 +463,7 @@ dissect_election_criterion(tvbuff_t *tvb, proto_tree *parent_tree, int offset) */ int dissect_smb_server_type_flags(tvbuff_t *tvb, int offset, packet_info *pinfo, - proto_tree *parent_tree, char *drep, + proto_tree *parent_tree, guint8 *drep, gboolean infoflag) { proto_tree *tree = NULL; @@ -571,8 +570,8 @@ dissect_mailslot_browse(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tr proto_tree *tree = NULL; proto_item *item = NULL; guint32 periodicity; - char host_name[17]; - guint namelen; + guint8 host_name[17]; + gint namelen; guint8 server_count, reset_cmd; int i; guint32 uptime; @@ -681,7 +680,7 @@ dissect_mailslot_browse(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tr break; } case BROWSE_REQUEST_ANNOUNCE: { - char *computer_name; + guint8 *computer_name; /* unused/unknown flags */ proto_tree_add_item(tree, hf_unused_flags, @@ -820,7 +819,7 @@ dissect_mailslot_lanman(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tr proto_tree *tree = NULL; proto_item *item = NULL; guint32 periodicity; - const char *host_name; + const guint8 *host_name; guint namelen; if (check_col(pinfo->cinfo, COL_PROTOCOL)) {