From 5a85b7fed2eb804db57cde3c851a12088cc60ee7 Mon Sep 17 00:00:00 2001 From: Anders Broman Date: Sat, 16 Mar 2013 08:52:09 +0000 Subject: [-Wmissing-prototypes] Use explicit casts. svn path=/trunk/; revision=48338 --- epan/dtd_parse.l | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'epan/dtd_parse.l') 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; -- cgit v1.2.1