"packet-udp.c" and "packet-x25.c" both have global variables named

"hash_table", but each of them is used only in the file in question;
make them static, so that they don't collide.

svn path=/trunk/; revision=440
This commit is contained in:
Guy Harris 1999-08-05 00:05:01 +00:00
parent 50dbd34d6d
commit 621c56ed1e
2 changed files with 3 additions and 3 deletions

View File

@ -1,7 +1,7 @@
/* packet-udp.c
* Routines for UDP packet disassembly
*
* $Id: packet-udp.c,v 1.21 1999/07/22 16:41:22 gram Exp $
* $Id: packet-udp.c,v 1.22 1999/08/05 00:05:00 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@ -86,7 +86,7 @@ struct hash_struct {
struct hash_struct *next;
};
struct hash_struct *hash_table[256];
static struct hash_struct *hash_table[256];
/*
* These routines are for UDP, will be generalized soon: RJS

View File

@ -115,7 +115,7 @@ typedef struct _global_vc_info {
struct _global_vc_info *next;
} global_vc_info;
global_vc_info *hash_table[64];
static global_vc_info *hash_table[64];
void
free_vc_info(vc_info *pt)