diff options
author | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-11-15 23:50:15 +0000 |
---|---|---|
committer | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-11-15 23:50:15 +0000 |
commit | 9f485cd0a3bf357dce30076871f4a2578ddbdd3c (patch) | |
tree | 24e0a25df87ccebeda328c5122da2117645c7705 /main/utils.c | |
parent | 60b38751b2724648291b8c616c37a9417f762150 (diff) |
If we're going to be passing a negative value for the size of a stringfield,
in order to indicate something, then using an UNSIGNED parameter is bad,
mmmmmkay?
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89312 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/utils.c')
-rw-r--r-- | main/utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/utils.c b/main/utils.c index 49e559da9..d94889188 100644 --- a/main/utils.c +++ b/main/utils.c @@ -1244,7 +1244,7 @@ static int add_string_pool(struct ast_string_field_mgr *mgr, * This must be done before destroying the object. */ int __ast_string_field_init(struct ast_string_field_mgr *mgr, - struct ast_string_field_pool **pool_head, size_t size) + struct ast_string_field_pool **pool_head, int size) { const char **p = (const char **)pool_head + 1; struct ast_string_field_pool *cur = *pool_head; |