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

  • From: Mircea Gherzan <mircea.gherzan@xxxxxxxxxxxxxx>
  • To: pisa-src@xxxxxxxxxxxxx
  • Date: Thu, 05 Nov 2009 14:53:39 +0100

Author: gherzan
Date: Thu Nov  5 14:53:38 2009
New Revision: 1537

Log:
pisacd: uninline cd_do_main

It fixes the alloca-related warning. Inlining cd_do_main
does not bring is not a real performance enhancer, since
this routine is called only once...

Modified:
   trunk/pisacd/cdmain.c

Modified: trunk/pisacd/cdmain.c
==============================================================================
--- trunk/pisacd/cdmain.c       Thu Nov  5 14:23:02 2009        (r1536)
+++ trunk/pisacd/cdmain.c       Thu Nov  5 14:53:38 2009        (r1537)
@@ -96,7 +96,7 @@
  * a set of file descriptors, setting up call to the select function and
  * processing of all incoming and outgoing packets.
  */
-static inline void cd_do_main(void)
+static void cd_do_main(void)
 {
        const int nfds = POLL_FD_COUNT;
        int i;

Other related posts:

  • » [pisa-src] r1537 - trunk/pisacd/cdmain.c - Mircea Gherzan