Mercurial > hg > freeDiameter
changeset 1141:3ae22e5dc56c
Fix a few compilation warnings/errors
author | Sebastien Decugis <sdecugis@freediameter.net> |
---|---|
date | Thu, 16 May 2013 15:13:55 +0800 |
parents | 5e8f75f207da |
children | 7ef8ab1d664f |
files | libfdcore/cnxctx.c tests/CMakeLists.txt |
diffstat | 2 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libfdcore/cnxctx.c Thu May 16 15:00:47 2013 +0800 +++ b/libfdcore/cnxctx.c Thu May 16 15:13:55 2013 +0800 @@ -658,6 +658,7 @@ return ret; } +#ifndef DISABLE_SCTP static uint8_t * fd_cnx_realloc_msg_buffer(uint8_t * buffer, size_t expected_len, struct fd_msg_pmdl ** pmdl) { uint8_t * ret = NULL; @@ -666,6 +667,7 @@ CHECK_FCT_DO( fd_cnx_init_msg_buffer(ret, expected_len, pmdl), {free(ret); return NULL;} ); return ret; } +#endif /* DISABLE_SCTP */ static void free_rcvdata(void * arg) {
--- a/tests/CMakeLists.txt Thu May 16 15:00:47 2013 +0800 +++ b/tests/CMakeLists.txt Thu May 16 15:13:55 2013 +0800 @@ -47,6 +47,7 @@ SET(testfifo_ADDITIONAL_LIB ${CLOCK_GETTIME_LIBS}) SET(testsess_ADDITIONAL_LIB ${CLOCK_GETTIME_LIBS}) SET(testloadext_ADDITIONAL_LIB ${CMAKE_DL_LIBS}) +SET(testmesg_stress_ADDITIONAL_LIB ${CLOCK_GETTIME_LIBS} ${CMAKE_DL_LIBS}) ############################## # App_acct test