diff options
author | Anders Broman <anders.broman@ericsson.com> | 2013-03-15 22:40:15 +0000 |
---|---|---|
committer | Anders Broman <anders.broman@ericsson.com> | 2013-03-15 22:40:15 +0000 |
commit | 43e8a227816dc494252696e6f1672a610b491c6f (patch) | |
tree | 789ed98d60ddf15692d18920f3b9ec8fe05e886a /epan/dissectors/packet-collectd.c | |
parent | f5a5b3d0fe4f62b83aa5eae30d85f86719e49d59 (diff) |
[-Wmissing-prototypes]
Use explicit casts.
svn path=/trunk/; revision=48334
Diffstat (limited to 'epan/dissectors/packet-collectd.c')
-rw-r--r-- | epan/dissectors/packet-collectd.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/epan/dissectors/packet-collectd.c b/epan/dissectors/packet-collectd.c index f1cee8f5e3..4e11d62d62 100644 --- a/epan/dissectors/packet-collectd.c +++ b/epan/dissectors/packet-collectd.c @@ -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; |