aboutsummaryrefslogtreecommitdiffstats
path: root/tap-sctpchunkstat.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2010-03-27 06:47:47 +0000
committerGuy Harris <guy@alum.mit.edu>2010-03-27 06:47:47 +0000
commit48c3fab8b30abe23bf8ec8e9249d322171abef91 (patch)
tree9c5fb2a1f169c850a4592a24ca9d7e95eda5746d /tap-sctpchunkstat.c
parentdc53486da677ad24bfc5418f609401b3a7506be4 (diff)
Squelch some compiler warnings.
svn path=/trunk/; revision=32305
Diffstat (limited to 'tap-sctpchunkstat.c')
-rw-r--r--tap-sctpchunkstat.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tap-sctpchunkstat.c b/tap-sctpchunkstat.c
index eb2b5e6fb6..5730395d0a 100644
--- a/tap-sctpchunkstat.c
+++ b/tap-sctpchunkstat.c
@@ -106,7 +106,7 @@ sctpstat_reset(void *phs)
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;
@@ -136,7 +136,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;
@@ -223,7 +223,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 {