]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
remove LOCAL_USER_ACF_ADD since it is now the same as LOCAL_USER_ADD
authorRussell Bryant <russell@russellbryant.com>
Mon, 13 Feb 2006 20:12:50 +0000 (20:12 +0000)
committerRussell Bryant <russell@russellbryant.com>
Mon, 13 Feb 2006 20:12:50 +0000 (20:12 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@9800 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_curl.c
apps/app_hasnewvoicemail.c
apps/app_queue.c
funcs/func_cut.c
funcs/func_enum.c
funcs/func_rand.c
include/asterisk/module.h
pbx/pbx_dundi.c

index 1ef205e687054d142f09aea1642e52bee6703710..0432854a5877c39e8734d8a7ed052443a5d1c282 100644 (file)
@@ -125,7 +125,7 @@ static int acf_curl_exec(struct ast_channel *chan, char *cmd, char *info, char *
                return -1;
        }
 
-       LOCAL_USER_ACF_ADD(u);
+       LOCAL_USER_ADD(u);
 
        AST_STANDARD_APP_ARGS(args, info);      
        
index 535f4cd2ba711de702b805526314b3d1923cdba5..be73a0d105b3b55532c5f440aa71b16dfb07d0e1 100644 (file)
@@ -187,7 +187,7 @@ int acf_vmcount_exec(struct ast_channel *chan, char *cmd, char *argsstr, char *b
                AST_APP_ARG(folder);
        );
 
-       LOCAL_USER_ACF_ADD(u);
+       LOCAL_USER_ADD(u);
 
        buf[0] = '\0';
 
index d9ca0d72d87e962a9c02bb191fb9920e52e191f0..f9f06f3b4f5b5dc6fb776998358a4cd21b624834 100644 (file)
@@ -3156,7 +3156,7 @@ static int queue_function_qac(struct ast_channel *chan, char *cmd, char *data, c
                return -1;
        }
 
-       LOCAL_USER_ACF_ADD(u);
+       LOCAL_USER_ADD(u);
        
        AST_LIST_LOCK(&queues);
 
@@ -3199,7 +3199,7 @@ static int queue_function_queuememberlist(struct ast_channel *chan, char *cmd, c
                return -1;
        }
        
-       LOCAL_USER_ACF_ADD(u);
+       LOCAL_USER_ADD(u);
 
        AST_LIST_LOCK(&queues);
 
index c34b7d7407b26f30f28f9033ddb5b8675f61753d..753fb8976f86a14d577c96c9a2e8ae86702387a7 100644 (file)
@@ -233,7 +233,7 @@ static int acf_sort_exec(struct ast_channel *chan, char *cmd, char *data, char *
        struct localuser *u;
        int ret = -1;
 
-       LOCAL_USER_ACF_ADD(u);
+       LOCAL_USER_ADD(u);
 
        switch (sort_internal(chan, data, buf, len)) {
        case ERROR_NOARG:
@@ -258,7 +258,7 @@ static int acf_cut_exec(struct ast_channel *chan, char *cmd, char *data, char *b
        int ret = -1;
        struct localuser *u;
 
-       LOCAL_USER_ACF_ADD(u);
+       LOCAL_USER_ADD(u);
 
        switch (cut_internal(chan, data, buf, len)) {
        case ERROR_NOARG:
index 17c48ff8f661a650de7735fe244aff98f8ca4914..1da13a4d4afbf7bcdb3f8609453c8a29ec9fc292 100644 (file)
@@ -99,7 +99,7 @@ static int function_enum(struct ast_channel *chan, char *cmd, char *data,
        }
        *p = '\0';
 
-       LOCAL_USER_ACF_ADD(u);
+       LOCAL_USER_ADD(u);
 
        res = ast_get_enum(chan, p, dest, sizeof(dest), tech, sizeof(tech), args.zone,
                           args.options);
@@ -141,7 +141,7 @@ static int function_txtcidname(struct ast_channel *chan, char *cmd,
 
        buf[0] = '\0';
 
-       LOCAL_USER_ACF_ADD(u);
+       LOCAL_USER_ADD(u);
 
        if (ast_strlen_zero(data)) {
                ast_log(LOG_WARNING, "TXTCIDNAME requires an argument (number)\n");
index 6ec0f3c9320ad693a95691acd9d0eb45439e018b..0629246bcdf219c2560422d55585a77d3d6c6914 100644 (file)
@@ -53,7 +53,7 @@ static int acf_rand_exec(struct ast_channel *chan, char *cmd,
                             AST_APP_ARG(max);
        );
 
-       LOCAL_USER_ACF_ADD(u);
+       LOCAL_USER_ADD(u);
 
        AST_STANDARD_APP_ARGS(args, parse);
 
index 0f8cd5036e74140f64eb6932ad54f11d99a09cd1..d9d01b25122d0a9c064e56dafac6c2c207f54d54 100644 (file)
@@ -332,21 +332,6 @@ void ast_unregister_atexit(void (*func)(void));
        ast_update_use_count(); \
 }
 
-#define LOCAL_USER_ACF_ADD(u) { \
- \
-       if (!(u=calloc(1,sizeof(*u)))) { \
-               ast_log(LOG_WARNING, "Out of memory\n"); \
-               return -1; \
-       } \
-       ast_mutex_lock(&localuser_lock); \
-       u->chan = chan; \
-       u->next = localusers; \
-       localusers = u; \
-       localusecnt++; \
-       ast_mutex_unlock(&localuser_lock); \
-       ast_update_use_count(); \
-}
-
 /*! 
  * \brief Remove a localuser.
  * \param u the user to add, should be of type struct localuser
index e7667df52fca8a0d95300f4067ac9d3c9096fbc0..bce019a8e0444adb8f98196d9aa318990bfd4521 100644 (file)
@@ -3847,7 +3847,7 @@ static int dundifunc_read(struct ast_channel *chan, char *cmd, char *num, char *
        struct localuser *u;
        struct dundi_result dr[MAX_RESULTS];
 
-       LOCAL_USER_ACF_ADD(u);
+       LOCAL_USER_ADD(u);
 
        buf[0] = '\0';