changeset 1211:98478a8aabb1

Fix compilation warning
author Sebastien Decugis <sdecugis@freediameter.net>
date Mon, 17 Jun 2013 09:47:00 +0800
parents 0ef5c4eda92a
children c38bb8b69c43
files libfdcore/cnxctx.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libfdcore/cnxctx.c	Fri Jun 14 17:36:33 2013 +0800
+++ b/libfdcore/cnxctx.c	Mon Jun 17 09:47:00 2013 +0800
@@ -1636,9 +1636,11 @@
 	return 0;
 }
 
+#ifndef DISABLE_SCTP
 static int fd_cnx_uses_dtls(struct cnxctx * conn) {
 	return fd_cnx_may_dtls(conn) && (fd_cnx_teststate(conn, CC_STATUS_TLS));
 }
+#endif /* DISABLE_SCTP */
 
 /* TLS handshake a connection; no need to have called start_clear before. Reception is active if handhsake is successful */
 int fd_cnx_handshake(struct cnxctx * conn, int mode, int algo, char * priority, void * alt_creds)
"Welcome to our mercurial repository"