diff libfdcore/cnxctx.c @ 709:19a9470de77a

Fix a few compilations errors and warnings
author Sebastien Decugis <sdecugis@nict.go.jp>
date Thu, 10 Feb 2011 10:49:09 +0900
parents 4ffbc9f1e922
children e60376cb15e8
line wrap: on
line diff
--- a/libfdcore/cnxctx.c	Thu Feb 10 10:24:11 2011 +0900
+++ b/libfdcore/cnxctx.c	Thu Feb 10 10:49:09 2011 +0900
@@ -155,7 +155,8 @@
 #ifdef DISABLE_SCTP
 	TRACE_DEBUG(INFO, "This function should never been called when SCTP is disabled...");
 	ASSERT(0);
-	CHECK_FCT_DO( ENOTSUP, return NULL);
+	CHECK_FCT_DO( ENOTSUP, );
+	return NULL;
 #else /* DISABLE_SCTP */
 	struct cnxctx * cnx = NULL;
 
@@ -354,7 +355,8 @@
 #ifdef DISABLE_SCTP
 	TRACE_DEBUG(INFO, "This function should never be called when SCTP is disabled...");
 	ASSERT(0);
-	CHECK_FCT_DO( ENOTSUP, return NULL);
+	CHECK_FCT_DO( ENOTSUP, );
+	return NULL;
 #else /* DISABLE_SCTP */
 	int sock = 0;
 	struct cnxctx * cnx = NULL;
@@ -498,7 +500,7 @@
 int fd_cnx_isMultichan(struct cnxctx * conn)
 {
 	CHECK_PARAMS_DO( conn, return 0 );
-	#ifdef DISABLE_SCTP
+	#ifndef DISABLE_SCTP
 	if (conn->cc_proto == IPPROTO_SCTP)
 		return (conn->cc_sctp_para.str_in > 1) || (conn->cc_sctp_para.str_out > 1);
 	#endif /* DISABLE_SCTP */
"Welcome to our mercurial repository"