aboutsummaryrefslogtreecommitdiffstats
path: root/utils/ael_main.c
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2006-05-01 19:23:43 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2006-05-01 19:23:43 +0000
commit6decaec170394db15865f9fc0911d76349cfc3e8 (patch)
tree5c4bf19b9b7c59854747a99b8a9b24d46be40a07 /utils/ael_main.c
parent865d7820ee97c87b9e0bac40c471d02667c83c68 (diff)
make sure non-inlined versions of ast_copy_string and _ast_calloc are available
in the cases where they are needed (issue #7054) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@23984 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'utils/ael_main.c')
-rw-r--r--utils/ael_main.c22
1 files changed, 10 insertions, 12 deletions
diff --git a/utils/ael_main.c b/utils/ael_main.c
index 018077b65..c495fd479 100644
--- a/utils/ael_main.c
+++ b/utils/ael_main.c
@@ -10,12 +10,22 @@
#include <errno.h>
#include <regex.h>
#include <limits.h>
+
+/* ast_copy_string */
+#define AST_API_MODULE
+#include "asterisk/strings.h"
+
+/* ensure that _ast_calloc works */
+#define AST_API_MODULE
+#include "asterisk/utils.h"
+
#include "asterisk/ast_expr.h"
#include "asterisk/logger.h"
#include "asterisk/module.h"
#include "asterisk/channel.h"
#include "asterisk/app.h"
#include "asterisk/ael_structs.h"
+
#define AST_CONFIG_MAX_PATH 255
int conts=0, extens=0, priors=0;
@@ -53,18 +63,6 @@ struct ast_app *pbx_findapp(const char *app)
return (struct ast_app*)1; /* so as not to trigger an error */
}
-
-void ast_copy_string(char *dst, const char *src, size_t size)
-{
- while (*src && size) {
- *dst++ = *src++;
- size--;
- }
- if (__builtin_expect(!size, 0))
- dst--;
- *dst = '\0';
-}
-
void ast_cli_register_multiple(void)
{
if(!no_comp)