[svn-commits] tilghman: trunk r253113 - /trunk/tests/test_gosub.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Wed Mar 17 09:16:57 CDT 2010


Author: tilghman
Date: Wed Mar 17 09:16:54 2010
New Revision: 253113

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=253113
Log:
Switch to using intptr_t, as suggested by Kevin Fleming on the -dev list

Modified:
    trunk/tests/test_gosub.c

Modified: trunk/tests/test_gosub.c
URL: http://svnview.digium.com/svn/asterisk/trunk/tests/test_gosub.c?view=diff&rev=253113&r1=253112&r2=253113
==============================================================================
--- trunk/tests/test_gosub.c (original)
+++ trunk/tests/test_gosub.c Wed Mar 17 09:16:54 2010
@@ -37,16 +37,6 @@
 #include "asterisk/module.h"
 #include "asterisk/test.h"
 #include "asterisk/pbx.h"
-
-#if SIZEOF_INT == SIZEOF_CHAR_P
-#define	compat_int	int
-#elif SIZEOF_LONG == SIZEOF_CHAR_P
-#define	compat_int	long
-#elif SIZEOF_LONG_LONG == SIZEOF_CHAR_P
-#define	compat_int	long long
-#else
-#error "Cannot find an integer type the same size as a pointer"
-#endif
 
 AST_TEST_DEFINE(test_gosub)
 {
@@ -135,7 +125,7 @@
 			}
 		} else {
 			/* Run application */
-			compat_int exec_res;
+			intptr_t exec_res;
 			struct ast_app *app = pbx_findapp(testplan[i].app);
 			if (!app) {
 				ast_test_status_update(test, "Could not find '%s' in application listing!\n", testplan[i].app);




More information about the svn-commits mailing list