summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorMatthew Jordan <mjordan@digium.com>2012-10-02 20:45:22 +0000
committerMatthew Jordan <mjordan@digium.com>2012-10-02 20:45:22 +0000
commit0be8d5c64cf1a59d5de04c7c7c24f6624b95eede (patch)
tree1ade155739edfddd990560233b0a2a006820f6c3 /utils
parented3acdeb21d76713fe8e092855e51575b504c42d (diff)
Modify hashtest2 to compile after r374213. Someone, somewhere, may care.
Because hashtest2 has to provide symbols for things in asterisk that items it includes may use, when astobj2 decided to use ast_register_atexit it needed to provide a declaration for that as well. Otherwise - no linky. On a related note, ASTERISK-20505 was filed to convert hashtest/hashtest2 into actual unit tests, so we don't run into this problem again. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@374229 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'utils')
-rw-r--r--utils/hashtest2.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/utils/hashtest2.c b/utils/hashtest2.c
index 47397101e..e5b771798 100644
--- a/utils/hashtest2.c
+++ b/utils/hashtest2.c
@@ -357,6 +357,12 @@ void ast_unregister_file_version(const char *file)
}
+int ast_register_atexit(void (*func)(void));
+int ast_register_atexit(void (*func)(void))
+{
+ return 0;
+}
+
void ast_log(int level, const char *file, int line, const char *function, const char *fmt, ...)
{
va_list vars;