aboutsummaryrefslogtreecommitdiffstats
path: root/ui/cli/tap-rlcltestat.c
diff options
context:
space:
mode:
authorAnders Broman <anders.broman@ericsson.com>2013-03-07 07:05:45 +0000
committerAnders Broman <anders.broman@ericsson.com>2013-03-07 07:05:45 +0000
commit5d698bfd8898114f24c3e305a2861ab4e98c75e0 (patch)
tree512905ca5326683a1459e9258849888c366be5f5 /ui/cli/tap-rlcltestat.c
parent45a75522ed968d105b361b2cd3db5adde23479e4 (diff)
Use explicit casts.
svn path=/trunk/; revision=48161
Diffstat (limited to 'ui/cli/tap-rlcltestat.c')
-rw-r--r--ui/cli/tap-rlcltestat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/cli/tap-rlcltestat.c b/ui/cli/tap-rlcltestat.c
index b3d2e3c71d..3aa87bcb20 100644
--- a/ui/cli/tap-rlcltestat.c
+++ b/ui/cli/tap-rlcltestat.c
@@ -136,7 +136,7 @@ static rlc_lte_ep_t* alloc_rlc_lte_ep(const struct rlc_lte_tap_info *si, packet_
return NULL;
}
- if (!(ep = g_malloc(sizeof(rlc_lte_ep_t)))) {
+ if (!(ep = g_new(rlc_lte_ep_t,1))) {
return NULL;
}
@@ -379,7 +379,7 @@ static void rlc_lte_stat_init(const char *optarg, void *userdata _U_)
}
/* Create top-level struct */
- hs = g_malloc0(sizeof(rlc_lte_stat_t));
+ hs = g_new0(rlc_lte_stat_t,1);
hs->ep_list = NULL;