summaryrefslogtreecommitdiff
path: root/tests/test_gosub.c
diff options
context:
space:
mode:
authorTilghman Lesher <tilghman@meg.abyt.es>2010-03-17 14:16:54 +0000
committerTilghman Lesher <tilghman@meg.abyt.es>2010-03-17 14:16:54 +0000
commit91d6592e610c5701ef46810cbece11fe91a0132a (patch)
treeb411cd871bbe18ff726cb898db7549ac7588ab8e /tests/test_gosub.c
parent6587f0941d637943cb860d3c540a67ddce60bee8 (diff)
Switch to using intptr_t, as suggested by Kevin Fleming on the -dev list
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@253113 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'tests/test_gosub.c')
-rw-r--r--tests/test_gosub.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/tests/test_gosub.c b/tests/test_gosub.c
index b10e73ed5..75c09f8ce 100644
--- a/tests/test_gosub.c
+++ b/tests/test_gosub.c
@@ -38,16 +38,6 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
#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)
{
int res = AST_TEST_PASS, i;
@@ -135,7 +125,7 @@ AST_TEST_DEFINE(test_gosub)
}
} 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);