Minor change: use guint for prefs port variables.
authorwmeier <wmeier@f5534014-38df-0310-8fa8-9805f1628bb7>
Tue, 23 Sep 2008 01:10:45 +0000 (01:10 +0000)
committerwmeier <wmeier@f5534014-38df-0310-8fa8-9805f1628bb7>
Tue, 23 Sep 2008 01:10:45 +0000 (01:10 +0000)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@26253 f5534014-38df-0310-8fa8-9805f1628bb7

epan/dissectors/packet-mgcp.c
epan/dissectors/packet-quake.c
epan/dissectors/packet-quake2.c
epan/dissectors/packet-quake3.c
epan/dissectors/packet-quakeworld.c

index 5cde55eb60d1e665b29df0bdc91b332e73d5c5f2..7039d24d86c048e6d951d559b9b127bec93a95ec 100644 (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)
        {
index 506e2bae763a021e607981c162e2f0ac1409aaa3..86919c4dc39f6d61150705a8eccf02258cf05065 100644 (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);
index b8cdafb6dcfc64a624acd491e4dd38349615d8a6..5250b0e24e756725572d65f21f00e1c503e496fa 100644 (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,
index 111cb1e8ce4a01aba2528289940a5da36f1698fe..b3f60d5b1017987947627cbf14b576fc3b7e2676 100644 (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) {
index d1cc2a0916cbca10856b859529d8559401199113..bab9646dcf370d1eba28d664e0a1b7e71ae00be3 100644 (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,