diff options
author | Anders Broman <anders.broman@ericsson.com> | 2013-03-05 22:15:20 +0000 |
---|---|---|
committer | Anders Broman <anders.broman@ericsson.com> | 2013-03-05 22:15:20 +0000 |
commit | b204e38aef8bf9905e8d3d1e44361ae77a8f0c3f (patch) | |
tree | b191b3f59b27d26b9f9fc82f64c8b4f8d756467c /ui/cli/tap-camelcounter.c | |
parent | faa06129a916b6021faa22cc3eb0d6312e9e22a2 (diff) |
Use explicit casts.
svn path=/trunk/; revision=48108
Diffstat (limited to 'ui/cli/tap-camelcounter.c')
-rw-r--r-- | ui/cli/tap-camelcounter.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/cli/tap-camelcounter.c b/ui/cli/tap-camelcounter.c index 600a351e0a..2d82d311cb 100644 --- a/ui/cli/tap-camelcounter.c +++ b/ui/cli/tap-camelcounter.c @@ -59,7 +59,7 @@ static int camelcounter_packet(void *phs, const void *phi) { struct camelcounter_t * p_counter =(struct camelcounter_t *)phs; - const struct camelsrt_info_t * pi=phi; + const struct camelsrt_info_t * pi=(const struct camelsrt_info_t *)phi; if (pi->opcode != 255) p_counter->camel_msg[pi->opcode]++; @@ -90,7 +90,7 @@ static void camelcounter_init(const char *optarg, void* userdata _U_) struct camelcounter_t *p_camelcounter; GString *error_string; - p_camelcounter = g_malloc(sizeof(struct camelcounter_t)); + p_camelcounter = g_new(struct camelcounter_t,1); if(!strncmp(optarg,"camel,counter,",13)){ p_camelcounter->filter=g_strdup(optarg+13); } else { |