Minor change: use guint for prefs port variables.

svn path=/trunk/; revision=26253
This commit is contained in:
Bill Meier 2008-09-23 01:10:45 +00:00
parent 1a7111b603
commit 65e1251846
5 changed files with 14 additions and 14 deletions

View File

@ -946,10 +946,10 @@ void proto_reg_handoff_mgcp(void)
* Variables to allow for proper deletion of dissector registration when
* the user changes port from the gui.
*/
static int gateway_tcp_port;
static int gateway_udp_port;
static int callagent_tcp_port;
static int callagent_udp_port;
static guint gateway_tcp_port;
static guint gateway_udp_port;
static guint callagent_tcp_port;
static guint callagent_udp_port;
if (!mgcp_prefs_initialized)
{

View File

@ -79,7 +79,7 @@ static dissector_handle_t data_handle;
#define NETFLAG_LENGTH_MASK 0x0000ffff
#define NET_HEADERSIZE 8
#define DEFAULTnet_hostport 26000
static unsigned int gbl_quakeServerPort=DEFAULTnet_hostport;
static guint gbl_quakeServerPort=DEFAULTnet_hostport;
#define NETFLAG_LENGTH_MASK 0x0000ffff
#define NETFLAG_DATA 0x00010000
@ -517,7 +517,7 @@ void
proto_reg_handoff_quake(void)
{
static gboolean Initialized=FALSE;
static int ServerPort;
static guint ServerPort;
if (!Initialized) {
quake_handle = create_dissector_handle(dissect_quake, proto_quake);

View File

@ -83,7 +83,7 @@ static gint ett_quake2_game_clc_cmd_move_moves = -1;
static dissector_handle_t data_handle;
#define PORT_MASTER 27910
static unsigned int gbl_quake2ServerPort=PORT_MASTER;
static guint gbl_quake2ServerPort=PORT_MASTER;
static void
@ -766,7 +766,7 @@ proto_reg_handoff_quake2(void)
{
static gboolean Initialized=FALSE;
static dissector_handle_t quake2_handle;
static int ServerPort;
static guint ServerPort;
if (!Initialized) {
quake2_handle = create_dissector_handle(dissect_quake2,

View File

@ -77,8 +77,8 @@ static dissector_handle_t data_handle;
#define QUAKE3_SERVER_PORT 27960
#define QUAKE3_MASTER_PORT 27950
static unsigned int gbl_quake3_server_port=QUAKE3_SERVER_PORT;
static unsigned int gbl_quake3_master_port=QUAKE3_MASTER_PORT;
static guint gbl_quake3_server_port=QUAKE3_SERVER_PORT;
static guint gbl_quake3_master_port=QUAKE3_MASTER_PORT;
static const value_string names_direction[] = {
@ -546,8 +546,8 @@ proto_reg_handoff_quake3(void)
{
static gboolean initialized=FALSE;
static dissector_handle_t quake3_handle;
static int server_port;
static int master_port;
static guint server_port;
static guint master_port;
int i;
if (!initialized) {

View File

@ -330,7 +330,7 @@ static const value_string names_direction[] = {
/* I took this name and value directly out of the QW source. */
#define PORT_MASTER 27500
static unsigned int gbl_quakeworldServerPort=PORT_MASTER;
static guint gbl_quakeworldServerPort=PORT_MASTER;
/* out of band message id bytes (taken out of quakeworldsource/client/protocol.h */
@ -773,7 +773,7 @@ proto_reg_handoff_quakeworld(void)
{
static gboolean Initialized=FALSE;
static dissector_handle_t quakeworld_handle;
static int ServerPort;
static guint ServerPort;
if (!Initialized) {
quakeworld_handle = create_dissector_handle(dissect_quakeworld,