[-Wmissing-prototypes]
authorAnders Broman <anders.broman@ericsson.com>
Fri, 15 Mar 2013 22:40:15 +0000 (22:40 -0000)
committerAnders Broman <anders.broman@ericsson.com>
Fri, 15 Mar 2013 22:40:15 +0000 (22:40 -0000)
Use explicit casts.

svn path=/trunk/; revision=48334

epan/dissectors/packet-cfm.c
epan/dissectors/packet-cigi.c
epan/dissectors/packet-cnip.c
epan/dissectors/packet-collectd.c
epan/dissectors/packet-componentstatus.c
epan/dissectors/packet-cpha.c

index 5369e7627cc2daac60503a3d46b578dce590ca2a..00f6c02a1209fc065ae2c5b093e7f3eff11715b7 100644 (file)
@@ -77,6 +77,9 @@
 #define ORG_SPEC_TLV   0x1F
 #define TEST_TLV        0x20
 
+void proto_register_cfm(void);
+void proto_reg_handoff_cfm(void);
+
 static int proto_cfm = -1;
 
 static const value_string opcodetypenames[] = {
index ddfb9c5e4c7de10d2efe1276dbff381277df33c8..27313d0970ba74f88280691bbf2bad3efff47b07 100644 (file)
@@ -2637,14 +2637,14 @@ dissect_cigi_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
     }
 
     /* Format the Info String */
-    src_str = (const char*)ip_to_str(pinfo->src.data);
+    src_str = (const char*)ip_to_str((const guint8 *)pinfo->src.data);
     if ( !g_ascii_strcasecmp(global_host_ip, src_str) ) {
         src_str = "Host";
     } else if ( !g_ascii_strcasecmp(global_ig_ip, src_str) ) {
         src_str = "IG";
     }
 
-    dest_str = (const char*)ip_to_str(pinfo->dst.data);
+    dest_str = (const char*)ip_to_str((const guint8 *)pinfo->dst.data);
     if ( !g_ascii_strcasecmp(global_host_ip, dest_str) ) {
         dest_str = "Host";
     } else if ( !g_ascii_strcasecmp(global_ig_ip, dest_str) ) {
index 079442e6637dfa5bbf9b3bbbd21cfebd3a751a8e..6d5011e9ebf7a848de07d6d1d47083aa1bd26f06 100644 (file)
@@ -52,6 +52,7 @@ static const value_string type_tuple[]=
        {0, NULL}
 };
 
+void proto_register_cnip(void);
 void proto_reg_handoff_cnip(void);
 
 static gint hf_cnip_len                        = -1;
index f1cee8f5e3fddbf923a35524900f3457aba2adc2..4e11d62d6273b761be7d4a3f8988ae11a77c6df5 100644 (file)
@@ -47,6 +47,8 @@
 #define TYPE_SIGN_SHA256     0x0200
 #define TYPE_ENCR_AES256     0x0210
 
+void proto_register_collectd(void);
+
 typedef struct value_data_s {
        gchar *host;
        gint host_off;
@@ -212,7 +214,7 @@ collectd_stats_tree_packet (stats_tree *st, packet_info *pinfo _U_,
        const tap_data_t *td;
        string_counter_t *sc;
 
-       td = user_data;
+       td = (const tap_data_t *)user_data;
        if (td == NULL)
                return (-1);
 
@@ -819,7 +821,7 @@ stats_account_string (string_counter_t **ret_list, const gchar *new_value)
                        return (0);
                }
 
-       entry = ep_alloc0 (sizeof (*entry));
+       entry = (string_counter_t *)ep_alloc0 (sizeof (*entry));
        entry->string = ep_strdup (new_value);
        entry->count = 1;
        entry->next = *ret_list;
index cfbc0b37593d12a2a1c8c96200187c837da52359..6973d492f8e0ba4bbb92913d65ec116a7aaf9ac7 100644 (file)
@@ -45,6 +45,8 @@
 
 #define CSPT_REPORT
 
+void proto_register_componentstatus(void);
+void proto_reg_handoff_componentstatus(void);
 
 /* Initialize the protocol and registered fields */
 static int proto_componentstatusprotocol             = -1;
index 67e9482f404d2292708d1f0efd0a04afed42a385..ba300d036d09149f3ac1196296d37e641febd438 100644 (file)
@@ -30,8 +30,8 @@
 #include <epan/packet.h>
 #include <epan/ipproto.h>
 
-void proto_register_chpa(void);
-void proto_reg_handoff_chpa(void);
+void proto_register_cpha(void);
+void proto_reg_handoff_cpha(void);
 
 static int proto_cphap = -1;