aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dtd_parse.l
diff options
context:
space:
mode:
authorAnders Broman <anders.broman@ericsson.com>2013-03-16 08:52:09 +0000
committerAnders Broman <anders.broman@ericsson.com>2013-03-16 08:52:09 +0000
commit5a85b7fed2eb804db57cde3c851a12088cc60ee7 (patch)
tree80e3d37b1fe7dc5176b11794585f29346fbc0477 /epan/dtd_parse.l
parent27744ecc2d9925491e5ef8cc97e41d551efc6a2e (diff)
[-Wmissing-prototypes]
Use explicit casts. svn path=/trunk/; revision=48338
Diffstat (limited to 'epan/dtd_parse.l')
-rw-r--r--epan/dtd_parse.l4
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dtd_parse.l b/epan/dtd_parse.l
index 5a0b219a05..ef0b313ff1 100644
--- a/epan/dtd_parse.l
+++ b/epan/dtd_parse.l
@@ -301,7 +301,7 @@ squoted ['][^\']*[']
%%
static dtd_token_data_t* new_token(gchar* text) {
- dtd_token_data_t* t = g_malloc(sizeof(dtd_token_data_t));
+ dtd_token_data_t* t = g_new(dtd_token_data_t,1);
t->text = g_strdup(text);
t->location = g_strdup(location);
@@ -338,7 +338,7 @@ extern dtd_build_data_t* dtd_parse(GString* s) {
DtdParseTrace(stderr, ">>");
#endif
- build_data = g_malloc(sizeof(dtd_build_data_t));
+ build_data = g_new(dtd_build_data_t,1);
build_data->proto_name = NULL;
build_data->media_type = NULL;