diff options
author | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-09-06 15:40:15 +0000 |
---|---|---|
committer | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-09-06 15:40:15 +0000 |
commit | 6381f8773984a60fd7133e88ccf3622ef4a152c1 (patch) | |
tree | b780af44fe05f81a69f4b3776bcd63ecee402288 /funcs/func_curl.c | |
parent | 05a5f01e0a5b9f658a63d825a7ba3aff7db48782 (diff) |
Get rid of the casts that cause warnings on OpenBSD. The compiler is errantly
detecting warnings when we redefine a structure each time it is used, even
though the structure is identical.
Reported by: mvanbaak, via #asterisk-dev
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@141507 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'funcs/func_curl.c')
-rw-r--r-- | funcs/func_curl.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/funcs/func_curl.c b/funcs/func_curl.c index a3698e47c..a1ed4e991 100644 --- a/funcs/func_curl.c +++ b/funcs/func_curl.c @@ -155,7 +155,7 @@ static int parse_curlopt_key(const char *name, CURLoption *key, enum optiontype static int acf_curlopt_write(struct ast_channel *chan, const char *cmd, char *name, const char *value) { struct ast_datastore *store; - AST_LIST_HEAD(global_curl_info, curl_settings) *list; + struct global_curl_info *list; struct curl_settings *cur, *new = NULL; CURLoption key; enum optiontype ot; @@ -181,7 +181,7 @@ static int acf_curlopt_write(struct ast_channel *chan, const char *cmd, char *na } } else { /* Populate the global structure */ - list = (struct global_curl_info *)&global_curl_info; + list = &global_curl_info; } if (!parse_curlopt_key(name, &key, &ot)) { @@ -274,7 +274,7 @@ yuck: static int acf_curlopt_read(struct ast_channel *chan, const char *cmd, char *data, char *buf, size_t len) { struct ast_datastore *store; - AST_LIST_HEAD(global_curl_info, curl_settings) *list[2] = { (struct global_curl_info *)&global_curl_info, NULL }; + struct global_curl_info *list[2] = { &global_curl_info, NULL }; struct curl_settings *cur; CURLoption key; enum optiontype ot; @@ -287,7 +287,7 @@ static int acf_curlopt_read(struct ast_channel *chan, const char *cmd, char *dat if (chan && (store = ast_channel_datastore_find(chan, &curl_info, NULL))) { list[0] = store->data; - list[1] = (struct global_curl_info *)&global_curl_info; + list[1] = &global_curl_info; } for (i = 0; i < 2; i++) { |