code cleanup, removed unused parameters, inserted some _U_
authorgirlich <girlich@f5534014-38df-0310-8fa8-9805f1628bb7>
Tue, 2 Apr 2002 06:28:16 +0000 (06:28 +0000)
committergirlich <girlich@f5534014-38df-0310-8fa8-9805f1628bb7>
Tue, 2 Apr 2002 06:28:16 +0000 (06:28 +0000)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@5086 f5534014-38df-0310-8fa8-9805f1628bb7

packet-quake.c
packet-quake2.c
packet-quake3.c

index a7ff116f50e71d5426441a010aeac11014a9d82c..44d60600755fe9deef272bfc1f9961aeedda840a 100644 (file)
@@ -4,7 +4,7 @@
  * Uwe Girlich <uwe@planetquake.com>
  *     http://www.idsoftware.com/q1source/q1source.zip
  *
- * $Id: packet-quake.c,v 1.25 2002/01/24 09:20:50 guy Exp $
+ * $Id: packet-quake.c,v 1.26 2002/04/02 06:28:16 girlich Exp $
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@ethereal.com>
@@ -161,7 +161,7 @@ static void dissect_quake(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree);
 
 static void
 dissect_quake_CCREQ_CONNECT
-(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
+(tvbuff_t *tvb, proto_tree *tree)
 {
        gint maxbufsize;
        char game[QUAKE_MAXSTRING];
@@ -183,7 +183,7 @@ dissect_quake_CCREQ_CONNECT
 
 static void
 dissect_quake_CCREQ_SERVER_INFO
-(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
+(tvbuff_t *tvb, proto_tree *tree)
 {
        gint maxbufsize;
        char game[QUAKE_MAXSTRING];
@@ -205,7 +205,7 @@ dissect_quake_CCREQ_SERVER_INFO
 
 static void
 dissect_quake_CCREQ_PLAYER_INFO
-(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
+(tvbuff_t *tvb, proto_tree *tree)
 {
        guint8 player;
 
@@ -219,7 +219,7 @@ dissect_quake_CCREQ_PLAYER_INFO
 
 static void
 dissect_quake_CCREQ_RULE_INFO
-(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
+(tvbuff_t *tvb, proto_tree *tree)
 {
        char rule[QUAKE_MAXSTRING];
        gint maxbufsize;
@@ -256,7 +256,7 @@ dissect_quake_CCREP_ACCEPT
 
 static void
 dissect_quake_CCREP_REJECT
-(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
+(tvbuff_t *tvb, proto_tree *tree)
 {
        gint maxbufsize;
        char reason[QUAKE_MAXSTRING];
@@ -274,7 +274,7 @@ dissect_quake_CCREP_REJECT
 
 static void
 dissect_quake_CCREP_SERVER_INFO
-(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
+(tvbuff_t *tvb, proto_tree *tree)
 {
        gint offset;
        gint len;
@@ -330,7 +330,7 @@ dissect_quake_CCREP_SERVER_INFO
 
 static void
 dissect_quake_CCREP_PLAYER_INFO
-(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
+(tvbuff_t *tvb, proto_tree *tree)
 {
        gint offset;
        guint8 player;
@@ -402,7 +402,7 @@ dissect_quake_CCREP_PLAYER_INFO
 
 static void
 dissect_quake_CCREP_RULE_INFO
-(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
+(tvbuff_t *tvb, proto_tree *tree)
 {
        char rule[QUAKE_MAXSTRING];
        char value[QUAKE_MAXSTRING];
@@ -468,19 +468,19 @@ dissect_quake_control(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        switch (command) {
                case CCREQ_CONNECT:
                        dissect_quake_CCREQ_CONNECT
-                       (next_tvb, pinfo, control_tree);
+                       (next_tvb, control_tree);
                break;
                case CCREQ_SERVER_INFO:
                        dissect_quake_CCREQ_SERVER_INFO
-                       (next_tvb, pinfo, control_tree);
+                       (next_tvb, control_tree);
                break;
                case CCREQ_PLAYER_INFO:
                        dissect_quake_CCREQ_PLAYER_INFO
-                       (next_tvb, pinfo, control_tree);
+                       (next_tvb, control_tree);
                break;
                case CCREQ_RULE_INFO:
                        dissect_quake_CCREQ_RULE_INFO
-                       (next_tvb, pinfo, control_tree);
+                       (next_tvb, control_tree);
                break;
                case CCREP_ACCEPT:
                        dissect_quake_CCREP_ACCEPT
@@ -488,19 +488,19 @@ dissect_quake_control(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
                break;
                case CCREP_REJECT:
                        dissect_quake_CCREP_REJECT
-                       (next_tvb, pinfo, control_tree);
+                       (next_tvb, control_tree);
                break;
                case CCREP_SERVER_INFO:
                        dissect_quake_CCREP_SERVER_INFO
-                       (next_tvb, pinfo, control_tree);
+                       (next_tvb, control_tree);
                break;
                case CCREP_PLAYER_INFO:
                        dissect_quake_CCREP_PLAYER_INFO
-                       (next_tvb, pinfo, control_tree);
+                       (next_tvb, control_tree);
                break;
                case CCREP_RULE_INFO:
                        dissect_quake_CCREP_RULE_INFO
-                       (next_tvb, pinfo, control_tree);
+                       (next_tvb, control_tree);
                break;
                default:
                        call_dissector(data_handle,next_tvb, pinfo, control_tree);
index 94635790f397062caa241643596479dd0219f6ef..b1d50f310db3f2e1ce2aced299ecbb62b2692572 100644 (file)
@@ -7,7 +7,7 @@
  *     http://www.dgs.monash.edu.au/~timf/bottim/
  *     http://www.opt-sci.Arizona.EDU/Pandora/default.asp
  *
- * $Id: packet-quake2.c,v 1.9 2002/01/24 09:20:50 guy Exp $
+ * $Id: packet-quake2.c,v 1.10 2002/04/02 06:28:16 girlich Exp $
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@ethereal.com>
@@ -71,8 +71,8 @@ static unsigned int gbl_quake2ServerPort=PORT_MASTER;
 
 
 static void
-dissect_quake2_ConnectionlessPacket(tvbuff_t *tvb, packet_info *pinfo,
-       proto_tree *tree, int direction)
+dissect_quake2_ConnectionlessPacket(tvbuff_t *tvb, packet_info *pinfo _U_,
+       proto_tree *tree, int direction _U_)
 {
        proto_tree      *cl_tree = NULL;
        proto_item      *cl_item = NULL;
index 827bcfdb2af4c0c5bc565b55cefa8fcf67833dbf..e8d2a0c578095b830025f64d5db79583f9e97356 100644 (file)
@@ -3,7 +3,7 @@
  *
  * Uwe Girlich <uwe@planetquake.com>
  *
- * $Id: packet-quake3.c,v 1.11 2002/04/02 01:32:46 guy Exp $
+ * $Id: packet-quake3.c,v 1.12 2002/04/02 06:28:16 girlich Exp $
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@ethereal.com>
@@ -145,7 +145,7 @@ static const value_string names_command[] = {
 
 
 static void
-dissect_quake3_ConnectionlessPacket(tvbuff_t *tvb, packet_info *pinfo,
+dissect_quake3_ConnectionlessPacket(tvbuff_t *tvb, packet_info *pinfo _U_,
        proto_tree *tree, int* direction)
 {
        proto_tree      *cl_tree = NULL;