[pisa-src] r1187 - trunk/pisacd/cdmain.c

  • From: Thomas Jansen <mithi@xxxxxxxxx>
  • To: pisa-src@xxxxxxxxxxxxx
  • Date: Thu, 15 Oct 2009 17:58:34 +0200

Author: tjansen
Date: Thu Oct 15 17:58:34 2009
New Revision: 1187

Log:
Fixed build for --enable-openwrt.

Modified:
   trunk/pisacd/cdmain.c

Modified: trunk/pisacd/cdmain.c
==============================================================================
--- trunk/pisacd/cdmain.c       Thu Oct 15 17:44:47 2009        (r1186)
+++ trunk/pisacd/cdmain.c       Thu Oct 15 17:58:34 2009        (r1187)
@@ -919,9 +919,11 @@
 #ifdef CONFIG_PISA_OPENWRT
        int     tmfd;
 
-       tmfd = pisa_maxInt(cd_ctx.tunnel, cd_ctx.fd_pacli);
+       tmfd = pisa_maxInt(cd_ctx.tunnel, cd_ctx.fd_pisaconf);
+#ifdef REMOVE_PREAUTH_CODE
+       tmfd = pisa_maxInt(tmfd, cd_ctx.fd_pacli);
        tmfd = pisa_maxInt(tmfd, cd_ctx.fd_pasrv);
-       tmfd = pisa_maxInt(tmfd, cd_ctx.fd_pisaconf);
+#endif /* REMOVE_PREAUTH_CODE */
        tmfd = pisa_maxInt(tmfd, cd_ctx.tunc);
        tmfd = pisa_maxInt(tmfd, cd_ctx.tund);
        maxfd = tmfd + 1;

Other related posts:

  • » [pisa-src] r1187 - trunk/pisacd/cdmain.c - Thomas Jansen