From Roy Marples:
[obnox/wireshark/wip.git] / tap-sctpchunkstat.c
index 800af2e2506d061b7a0b76500edef886335860cd..fcb82852408b0ebb2404adc563b8f2ee53fac142 100644 (file)
@@ -39,7 +39,6 @@
 #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>
 
@@ -105,7 +104,8 @@ sctpstat_reset(void *phs)
 }
 
 
-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;
@@ -135,7 +135,7 @@ sctpstat_packet(void *phs, packet_info *pinfo _U_, epan_dissect_t *edt _U_, cons
 
        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;
 
@@ -222,7 +222,7 @@ sctpstat_init(const char *optarg, void* userdata _U_)
        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 {