[rtems-libbsd commit] ftpd: Resolve function name conflict

Sebastian Huber sebh at rtems.org
Fri Mar 18 09:36:25 UTC 2016


Module:    rtems-libbsd
Branch:    master
Commit:    652b024e94db238e26967b87cc93330aac3c30f5
Changeset: http://git.rtems.org/rtems-libbsd/commit/?id=652b024e94db238e26967b87cc93330aac3c30f5

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Fri Mar 18 10:35:42 2016 +0100

ftpd: Resolve function name conflict

Visible with Newlib be657151f12f4d198e45395987f0a626ee1bbb91.

---

 rtemsbsd/ftpd/ftpd.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/rtemsbsd/ftpd/ftpd.c b/rtemsbsd/ftpd/ftpd.c
index 3cfed57..fddc03e 100644
--- a/rtemsbsd/ftpd/ftpd.c
+++ b/rtemsbsd/ftpd/ftpd.c
@@ -1983,7 +1983,7 @@ session(rtems_task_argument arg)
 
 
 /*
- * daemon
+ * ftpd_daemon
  *
  * This task runs forever.  It waits for service requests on the FTP port
  * (port 21 by default).  When a request is received, it opens a new session
@@ -1996,7 +1996,7 @@ session(rtems_task_argument arg)
  *   NONE
  */
 static void
-daemon(rtems_task_argument args __attribute__((unused)))
+ftpd_daemon(rtems_task_argument args __attribute__((unused)))
 {
   int                 s;
   socklen_t	      addrLen;
@@ -2144,7 +2144,7 @@ rtems_initialize_ftpd(void)
 
   if (sc == RTEMS_SUCCESSFUL)
   {
-    sc = rtems_task_start(tid, daemon, 0);
+    sc = rtems_task_start(tid, ftpd_daemon, 0);
     if (sc != RTEMS_SUCCESSFUL)
       rtems_task_delete(tid);
   }



More information about the vc mailing list