Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
belle-sip
Commits
418085fe
Commit
418085fe
authored
Feb 10, 2014
by
Ghislain MARY
Browse files
Fix compilation errors.
parent
d2025a63
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/belle_sip_internal.h
View file @
418085fe
...
...
@@ -377,7 +377,7 @@ BELLESIP_INTERNAL_EXPORT unsigned int belle_sip_random(void);
belle_sip_parameters_set_parameter(BELLE_SIP_PARAMETERS(obj),#attribute,NULL);\
}
#if HAVE_ANTLR_STRING_STREAM_NEW
#if
def
HAVE_ANTLR_STRING_STREAM_NEW
#define ANTLR_STREAM_NEW(object_type, value,length) \
antlr3StringStreamNew((pANTLR3_UINT8)value,ANTLR3_ENC_8BIT,(ANTLR3_UINT32)length,(pANTLR3_UINT8)#object_type)
#else
...
...
src/transports/tls_channel_polarssl.c
View file @
418085fe
...
...
@@ -201,7 +201,6 @@ static int tls_process_handshake(belle_sip_channel_t *obj){
static
int
tls_process_data
(
belle_sip_channel_t
*
obj
,
unsigned
int
revents
){
belle_sip_tls_channel_t
*
channel
=
(
belle_sip_tls_channel_t
*
)
obj
;
int
err
;
if
(
obj
->
state
==
BELLE_SIP_CHANNEL_CONNECTING
)
{
if
(
!
channel
->
socket_connected
)
{
...
...
tester/belle_sip_tester.c
View file @
418085fe
...
...
@@ -22,7 +22,7 @@
#include <stdio.h>
#include "CUnit/Basic.h"
#if HAVE_CU_CURSES
#if
def
HAVE_CU_CURSES
#include "CUnit/CUCurses.h"
#endif
#include <belle-sip/belle-sip.h>
...
...
@@ -35,7 +35,7 @@ static test_suite_t **test_suite = NULL;
static
int
nb_test_suites
=
0
;
#if HAVE_CU_CURSES
#if
def
HAVE_CU_CURSES
static
unsigned
char
curses
=
0
;
#endif
...
...
@@ -163,7 +163,7 @@ int belle_sip_tester_run_tests(const char *suite_name, const char *test_name) {
}
pool
=
belle_sip_object_pool_push
();
#if HAVE_CU_GET_SUITE
#if
def
HAVE_CU_GET_SUITE
if
(
suite_name
){
CU_pSuite
suite
;
CU_basic_set_mode
(
CU_BRM_VERBOSE
);
...
...
@@ -184,7 +184,7 @@ int belle_sip_tester_run_tests(const char *suite_name, const char *test_name) {
}
else
#endif
{
#if HAVE_CU_CURSES
#if
def
HAVE_CU_CURSES
if
(
curses
)
{
/* Run tests using the CUnit curses interface */
CU_curses_run_tests
();
...
...
@@ -223,11 +223,11 @@ int main (int argc, char *argv[]) {
"
\t\t\t
--verbose
\n
"
"
\t\t\t
--domain <test sip domain>
\n
"
"
\t\t\t
--auth-domain <test auth domain>
\n
"
#if HAVE_CU_GET_SUITE
#if
def
HAVE_CU_GET_SUITE
"
\t\t\t
--suite <suite name>
\n
"
"
\t\t\t
--test <test name>
\n
"
#endif
#if HAVE_CU_CURSES
#if
def
HAVE_CU_CURSES
"
\t\t\t
--curses
\n
"
#endif
,
argv
[
0
]);
...
...
@@ -242,7 +242,7 @@ int main (int argc, char *argv[]) {
i
++
;
auth_domain
=
argv
[
i
];
}
#if HAVE_CU_GET_SUITE
#if
def
HAVE_CU_GET_SUITE
else
if
(
strcmp
(
argv
[
i
],
"--test"
)
==
0
){
i
++
;
test_name
=
argv
[
i
];
...
...
@@ -251,7 +251,7 @@ int main (int argc, char *argv[]) {
suite_name
=
argv
[
i
];
}
#endif
#if HAVE_CU_CURSES
#if
def
HAVE_CU_CURSES
else
if
(
strcmp
(
argv
[
i
],
"--curses"
)
==
0
)
{
i
++
;
curses
=
1
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment