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

  • From: Thomas Jansen <mithi@xxxxxxxxx>
  • To: pisa-src@xxxxxxxxxxxxx
  • Date: Wed, 14 Oct 2009 11:06:14 +0200

Author: tjansen
Date: Wed Oct 14 11:06:13 2009
New Revision: 1136

Log:
Marked more code as deprecated. This fixes a compiler warning about a static
function being defined but never called. This fixes a compiler warning about a
static function being defined but never called.

Modified:
   trunk/pisacd/cdmain.c

Modified: trunk/pisacd/cdmain.c
==============================================================================
--- trunk/pisacd/cdmain.c       Wed Oct 14 10:50:48 2009        (r1135)
+++ trunk/pisacd/cdmain.c       Wed Oct 14 11:06:13 2009        (r1136)
@@ -94,7 +94,9 @@
 static void cd_deinit(void);
 static inline void cd_do_main(void);
 
+#ifdef REMOVE_PREAUTH_CODE
 static void add_fds_to_fdset(void *data, cdConMgrEntry *entry);
+#endif /* REMOVE_PREAUTH_CODE */
 static inline void send_pareq_to_ap(void);
 static inline void send_bureq_to_tp(void);
 static inline void cd_read_inbound_msgs(int fd);
@@ -434,6 +436,7 @@
        }
 }
 
+#ifdef REMOVE_PREAUTH_CODE
 /**
  * Callback used to add all file descriptors of our connections to the
  * set of file descriptors.
@@ -446,6 +449,7 @@
        fd_set *set = (fd_set *)data;
        FD_SET(entry->fd, set);
 }
+#endif /* REMOVE_PREAUTH_CODE */
 
 /**
  * Send pre-authentication request packet to my current access point.

Other related posts:

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