[pisa-src] r1087 - trunk/pisacd

  • From: Thomas Jansen <mithi@xxxxxxxxx>
  • To: pisa-src@xxxxxxxxxxxxx
  • Date: Mon, 12 Oct 2009 12:04:18 +0200

Author: tjansen
Date: Mon Oct 12 12:04:18 2009
New Revision: 1087

Log:
Prepared more code in main select loop to be removed with preauth.

Modified:
   trunk/pisacd/cdmain.c

Modified: trunk/pisacd/cdmain.c
==============================================================================
--- trunk/pisacd/cdmain.c       Mon Oct 12 11:34:06 2009        (r1086)
+++ trunk/pisacd/cdmain.c       Mon Oct 12 12:04:18 2009        (r1087)
@@ -341,9 +341,12 @@
                }
 #endif /* REMOVE_PREAUTH_CODE */
 
-               /* Should also be related to preauth */
+#ifdef REMOVE_PREAUTH_CODE
                cdConMgrIterateOverEntries(add_fds_to_fdset, (void *)&readfds);
+#endif /* REMOVE_PREAUTH_CODE */
 
+               /* TODO this is just a maxof, no need for a separate function.
+                * Inline once PREAUTH is gone. -- Thomas */
                maxfd = cd_get_maxfd();
 
                if ((ret = select(maxfd + 1, &readfds, NULL, NULL, &select_to)) 
<= 0) {

Other related posts:

  • » [pisa-src] r1087 - trunk/pisacd - Thomas Jansen