diff options
author | seanbright <seanbright@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-01-15 18:21:50 +0000 |
---|---|---|
committer | seanbright <seanbright@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-01-15 18:21:50 +0000 |
commit | adc69e041d2b415b3422672fb262423808dfa8ab (patch) | |
tree | ede1629dadd9e525779f3da8f54510a9dd1ea081 /apps/app_meetme.c | |
parent | a79e0451bce168a451e7ed1e30226166e58e203c (diff) |
Convert a few places to use ast_calloc_with_stringfields where applicable.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@240368 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_meetme.c')
-rw-r--r-- | apps/app_meetme.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/apps/app_meetme.c b/apps/app_meetme.c index d340ae1b3..17fec5f0c 100644 --- a/apps/app_meetme.c +++ b/apps/app_meetme.c @@ -6166,10 +6166,7 @@ static int sla_build_trunk(struct ast_config *cfg, const char *cat) return -1; } - if (!(trunk = ast_calloc(1, sizeof(*trunk)))) - return -1; - if (ast_string_field_init(trunk, 32)) { - ast_free(trunk); + if (!(trunk = ast_calloc_with_stringfields(1, struct sla_trunk, 32))) { return -1; } @@ -6295,10 +6292,7 @@ static int sla_build_station(struct ast_config *cfg, const char *cat) return -1; } - if (!(station = ast_calloc(1, sizeof(*station)))) - return -1; - if (ast_string_field_init(station, 32)) { - ast_free(station); + if (!(station = ast_calloc_with_stringfields(1, struct sla_station, 32))) { return -1; } |