#include <epan/tap.h>
#include <epan/stat_cmd_args.h>
#include "epan/value_string.h"
-#include "register.h"
#include <epan/dissectors/packet-sctp.h>
#include <epan/to_str.h>
}
-sctp_ep_t* alloc_sctp_ep(struct _sctp_info *si)
+static sctp_ep_t*
+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 {