Skip to content
Snippets Groups Projects
Commit 7aab90b3 authored by Joshua Colp's avatar Joshua Colp
Browse files

Remove the noop handler from sorcery so it does not produce an empty value.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@383925 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent 58ee2b7d
No related branches found
No related tags found
No related merge requests found
......@@ -169,11 +169,6 @@ static int sockaddr_handler_fn(const void *obj, const intptr_t *args, char **buf
return !(*buf = ast_strdup(ast_sockaddr_stringify(field))) ? -1 : 0;
}
static int noop_handler_fn(const void *obj, const intptr_t *args, char **buf)
{
return 0;
}
static int chararray_handler_fn(const void *obj, const intptr_t *args, char **buf)
{
char *field = (char *)(obj + args[0]);
......@@ -187,7 +182,6 @@ static sorcery_field_handler sorcery_field_default_handler(enum aco_option_type
case OPT_CHAR_ARRAY_T: return chararray_handler_fn;
case OPT_DOUBLE_T: return double_handler_fn;
case OPT_INT_T: return int_handler_fn;
case OPT_NOOP_T: return noop_handler_fn;
case OPT_SOCKADDR_T: return sockaddr_handler_fn;
case OPT_STRINGFIELD_T: return stringfield_handler_fn;
case OPT_UINT_T: return uint_handler_fn;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment