[asterisk-commits] mjordan: trunk r374229 - /trunk/utils/hashtest2.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Oct 2 15:45:25 CDT 2012


Author: mjordan
Date: Tue Oct  2 15:45:22 2012
New Revision: 374229

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=374229
Log:
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.

Modified:
    trunk/utils/hashtest2.c

Modified: trunk/utils/hashtest2.c
URL: http://svnview.digium.com/svn/asterisk/trunk/utils/hashtest2.c?view=diff&rev=374229&r1=374228&r2=374229
==============================================================================
--- trunk/utils/hashtest2.c (original)
+++ trunk/utils/hashtest2.c Tue Oct  2 15:45:22 2012
@@ -357,6 +357,12 @@
 
 }
 
+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;




More information about the asterisk-commits mailing list