Fix some compilation warnings.
authorgram <gram@f5534014-38df-0310-8fa8-9805f1628bb7>
Sun, 29 Aug 1999 04:15:31 +0000 (04:15 +0000)
committergram <gram@f5534014-38df-0310-8fa8-9805f1628bb7>
Sun, 29 Aug 1999 04:15:31 +0000 (04:15 +0000)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@609 f5534014-38df-0310-8fa8-9805f1628bb7

packet-rsvp.c
packet-snmp.c

index 7690804fffae8b6bc87ebb1989006873f72e94fb..ed373cbc98b381a09aefa58e16cdcd249c6ed657 100644 (file)
@@ -3,7 +3,7 @@
  *
  * (c) Copyright Ashok Narayanan <ashokn@cisco.com>
  *
- * $Id: packet-rsvp.c,v 1.7 1999/08/28 21:59:30 gram Exp $
+ * $Id: packet-rsvp.c,v 1.8 1999/08/29 04:15:30 gram Exp $
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@zing.org>
@@ -382,7 +382,7 @@ dissect_rsvp(const u_char *pd, int offset, frame_data *fd, proto_tree *tree)
                                    obj->class, object_type);
                switch(obj->type) {
                case 1: {
-                   rsvp_session_ipv4 *sess = (rsvp_session_ipv4 *)obj;
+                   /*rsvp_session_ipv4 *sess = (rsvp_session_ipv4 *)obj;*/
                    proto_tree_add_text(rsvp_object_tree, offset+3, 1, 
                                        "C-type: 1 - IPv4");
                    /*
index 5ae500d9df173e15a32f20cc67044fad4548b4e8..4c3729584b4242cd64c9efb822dc2ea1dafbf494 100644 (file)
@@ -2,7 +2,7 @@
  * Routines for SNMP (simple network management protocol)
  * D.Jorand (c) 1998
  *
- * $Id: packet-snmp.c,v 1.7 1999/08/20 21:26:37 guy Exp $
+ * $Id: packet-snmp.c,v 1.8 1999/08/29 04:15:31 gram Exp $
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@unicom.net>
@@ -355,7 +355,7 @@ dissect_snmp(const u_char *pd, int offset, frame_data *fd, proto_tree *tree)
        /* authenticates message */
        length=fd->pkt_len-offset;
        header_length=length;
-       data = snmp_comstr_parse(&pd[offset], &length, community, &community_length,&version);
+       data = snmp_comstr_parse(&pd[offset], &length, community, &community_length, (int*)&version);
        if(NULL == data) {
                dissect_snmp_error(pd, offset, fd, tree,
                    "Couldn't parse authentication");