aboutsummaryrefslogtreecommitdiffstats
path: root/packet-netbios.c
diff options
context:
space:
mode:
authorjmayer <jmayer@f5534014-38df-0310-8fa8-9805f1628bb7>2002-08-02 23:36:07 +0000
committerjmayer <jmayer@f5534014-38df-0310-8fa8-9805f1628bb7>2002-08-02 23:36:07 +0000
commit4ad4caac3465466d917054d2f911b18ba27b4fe0 (patch)
tree21967e4c27ac5e02aa39319022dd2858682fc5f4 /packet-netbios.c
parent14e1dba11b93d23bda70c030b0f4dbcc8ea5c4a4 (diff)
Replace the types from sys/types.h and netinet/in.h by their glib.h
equivalents for the toplevel directory. The removal of winsock2.h will hopefully not cause any problems under MSVC++, as those files using struct timeval still include wtap.h, which still includes winsock2.h. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@5932 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'packet-netbios.c')
-rw-r--r--packet-netbios.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/packet-netbios.c b/packet-netbios.c
index 22b6ee9024..bf39a48fe4 100644
--- a/packet-netbios.c
+++ b/packet-netbios.c
@@ -5,7 +5,7 @@
*
* derived from the packet-nbns.c
*
- * $Id: packet-netbios.c,v 1.49 2002/07/22 20:52:21 tpot Exp $
+ * $Id: packet-netbios.c,v 1.50 2002/08/02 23:35:55 jmayer Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -30,10 +30,6 @@
# include "config.h"
#endif
-#ifdef HAVE_SYS_TYPES_H
-# include <sys/types.h>
-#endif
-
#include <stdio.h>
#include <string.h>
#include <glib.h>
@@ -254,11 +250,11 @@ void capture_netbios(packet_counts *ld)
int
-process_netbios_name(const u_char *name_ptr, char *name_ret)
+process_netbios_name(const guchar *name_ptr, char *name_ret)
{
int i;
int name_type = *(name_ptr + NETBIOS_NAME_LEN - 1);
- u_char name_char;
+ guchar name_char;
static const char hex_digits[16] = "0123456789abcdef";
for (i = 0; i < NETBIOS_NAME_LEN - 1; i++) {
@@ -627,7 +623,7 @@ static void dissect_netb_terminate_trace( tvbuff_t *tvb _U_, int offset _U_,
}
-static u_char zeroes[10];
+static guchar zeroes[10];
static void dissect_netb_datagram( tvbuff_t *tvb, int offset, proto_tree *tree)