Update Free Software Foundation address.
[metze/wireshark/wip.git] / epan / dissectors / packet-quakeworld.c
index b50a944867dd4b0d8363395a90eef8fa0398d1d0..0e2ece17af023bf4934160a231f5867840e2f03f 100644 (file)
@@ -24,7 +24,7 @@
  *
  * You should have received a copy of the GNU General Public License
  * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
 
 #ifdef HAVE_CONFIG_H
@@ -203,8 +203,6 @@ Cmd_TokenizeString(char* text)
 {
        int i;
        int start;
-       int length;
-
 
        /* clear the args from the last string */
        for (i=0 ; i<cmd_argc ; i++)
@@ -221,8 +219,6 @@ Cmd_TokenizeString(char* text)
                        start++;
                }
 
-               length = 0;
-
                if (*text == '\n') {
                        /* a newline seperates commands in the buffer */
                        text++;
@@ -694,7 +690,7 @@ dissect_quakeworld(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        if (tree) {
                proto_item      *quakeworld_item;
                quakeworld_item = proto_tree_add_item(tree, proto_quakeworld,
-                               tvb, 0, -1, FALSE);
+                               tvb, 0, -1, ENC_NA);
                quakeworld_tree = proto_item_add_subtree(quakeworld_item, ett_quakeworld);
                proto_tree_add_uint_format(quakeworld_tree,
                                           direction == DIR_S2C ?
@@ -865,12 +861,12 @@ proto_reg_handoff_quakeworld(void)
                data_handle = find_dissector("data");
                Initialized=TRUE;
        } else {
-               dissector_delete("udp.port", ServerPort, quakeworld_handle);
+               dissector_delete_uint("udp.port", ServerPort, quakeworld_handle);
        }
 
         /* set port for future deletes */
         ServerPort=gbl_quakeworldServerPort;
 
-       dissector_add("udp.port", gbl_quakeworldServerPort, quakeworld_handle);
+       dissector_add_uint("udp.port", gbl_quakeworldServerPort, quakeworld_handle);
 }