[asterisk-commits] file: trunk r383925 - /trunk/main/sorcery.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Tue Mar 26 18:34:46 CDT 2013
Author: file
Date: Tue Mar 26 18:34:43 2013
New Revision: 383925
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=383925
Log:
Remove the noop handler from sorcery so it does not produce an empty value.
Modified:
trunk/main/sorcery.c
Modified: trunk/main/sorcery.c
URL: http://svnview.digium.com/svn/asterisk/trunk/main/sorcery.c?view=diff&rev=383925&r1=383924&r2=383925
==============================================================================
--- trunk/main/sorcery.c (original)
+++ trunk/main/sorcery.c Tue Mar 26 18:34:43 2013
@@ -169,11 +169,6 @@
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 @@
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;
More information about the asterisk-commits
mailing list