]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Fix compile errors caused by r4500 / r4501.
authorCorey Farrell <git@cfware.com>
Thu, 26 Mar 2015 23:07:15 +0000 (23:07 +0000)
committerCorey Farrell <git@cfware.com>
Thu, 26 Mar 2015 23:07:15 +0000 (23:07 +0000)
* Add ast_register_cleanup to utils/clicompat.c to deal with
  any utils that copy sources from main.
* Asterisk 13+: remove unused variables from core_local.c.

Review: https://reviewboard.asterisk.org/r/4534/
........

Merged revisions 433499 from http://svn.asterisk.org/svn/asterisk/branches/11

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/13@433500 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/core_local.c
utils/clicompat.c

index 6160db48ac1e5697950ea5fdc564478cd474c264..10bd83961cac1334c4f813c4edaec3c7c9036b5e 100644 (file)
@@ -1001,9 +1001,6 @@ static int locals_cmp_cb(void *obj, void *arg, int flags)
  */
 static void local_shutdown(void)
 {
-       struct local_pvt *p;
-       struct ao2_iterator it;
-
        /* First, take us out of the channel loop */
        ast_cli_unregister_multiple(cli_local, ARRAY_LEN(cli_local));
        ast_manager_unregister("LocalOptimizeAway");
index d46ed897d77e9d58e2cb6ab71b723d0477928e37..d25a7102e858ada182f89387756cc60bf04786ca 100644 (file)
@@ -14,6 +14,13 @@ int ast_register_atexit(void (*func)(void))
 {
        return 0;
 }
+
+int ast_register_cleanup(void (*func)(void));
+int ast_register_cleanup(void (*func)(void))
+{
+       return 0;
+}
+
 int ast_cli_register_multiple(struct ast_cli_entry *e, int len);
 int ast_cli_register_multiple(struct ast_cli_entry *e, int len)
 {