diff libfdcore/cnxctx.c @ 1141:3ae22e5dc56c

Fix a few compilation warnings/errors
author Sebastien Decugis <sdecugis@freediameter.net>
date Thu, 16 May 2013 15:13:55 +0800
parents d8591b1c56cd
children ea3a653a809e
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) 
 {
"Welcome to our mercurial repository"