static sctp_ep_t*
-alloc_sctp_ep(struct _sctp_info *si)
+alloc_sctp_ep(const struct _sctp_info *si)
{
sctp_ep_t* ep;
guint16 chunk_type;
sctpstat_t *hs=(sctpstat_t *)phs;
sctp_ep_t *tmp = NULL, *te = NULL;
- struct _sctp_info *si = (struct _sctp_info *) phi;
+ const struct _sctp_info *si = (const struct _sctp_info *) phi;
guint32 tvb_number;
guint8 chunk_type;
sctpstat_t *hs;
GString *error_string;
- hs = g_malloc(sizeof(sctpstat_t));
+ hs = (sctpstat_t *)g_malloc(sizeof(sctpstat_t));
if(!strncmp(optarg,"sctp,stat,",11)){
hs->filter=g_strdup(optarg+11);
} else {
static void
draw_stats_tree(void *psp)
{
- stats_tree *st = psp;
+ stats_tree *st = (stats_tree *)psp;
GString *s;
gchar *fmt;
stat_node *child;
if (cfg != NULL) {
if (strncmp (optarg, cfg->pr->init_string, strlen(cfg->pr->init_string)) == 0){
- st = stats_tree_new(cfg,NULL,(char*)(optarg)+strlen(cfg->pr->init_string));
+ st = stats_tree_new(cfg,NULL,optarg+strlen(cfg->pr->init_string));
} else {
report_failure("Wrong stats_tree (%s) found when looking at ->init_string",abbr);
return;
void
register_stats_tree_tap (gpointer k _U_, gpointer v, gpointer p _U_)
{
- stats_tree_cfg *cfg = v;
+ stats_tree_cfg *cfg = (stats_tree_cfg *)v;
- cfg->pr = g_malloc(sizeof(tree_cfg_pres));
+ cfg->pr = (tree_cfg_pres *)g_malloc(sizeof(tree_cfg_pres));
cfg->pr->init_string = g_strdup_printf("%s,tree", cfg->abbr);
register_stat_cmd_arg(cfg->pr->init_string, init_stats_tree, NULL);