[rtems commit] ftpd: Fix return types

Sebastian Huber sebh at rtems.org
Tue Mar 31 08:11:44 UTC 2020


Module:    rtems
Branch:    master
Commit:    eb92b1fceb4cc521a74b7264a49b4905e3334474
Changeset: http://git.rtems.org/rtems/commit/?id=eb92b1fceb4cc521a74b7264a49b4905e3334474

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Tue Mar 31 10:03:20 2020 +0200

ftpd: Fix return types

---

 cpukit/ftpd/ftpd-init.c     | 2 +-
 cpukit/ftpd/ftpd.c          | 2 +-
 cpukit/include/rtems/ftpd.h | 6 ++++--
 3 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/cpukit/ftpd/ftpd-init.c b/cpukit/ftpd/ftpd-init.c
index 35546ff..7e56b4e 100644
--- a/cpukit/ftpd/ftpd-init.c
+++ b/cpukit/ftpd/ftpd-init.c
@@ -12,7 +12,7 @@
 
 #include <rtems/ftpd.h>
 
-int rtems_initialize_ftpd( void )
+rtems_status_code rtems_initialize_ftpd( void )
 {
   rtems_ftpd_configuration.verbose = true;
   return rtems_ftpd_start( &rtems_ftpd_configuration );
diff --git a/cpukit/ftpd/ftpd.c b/cpukit/ftpd/ftpd.c
index ff6e6ef..542c455 100644
--- a/cpukit/ftpd/ftpd.c
+++ b/cpukit/ftpd/ftpd.c
@@ -2068,7 +2068,7 @@ ftpd_daemon(rtems_task_argument args RTEMS_UNUSED)
  * Output parameters:
  *    returns RTEMS_SUCCESSFUL on successful start of the daemon.
  */
-int
+rtems_status_code
 rtems_ftpd_start(const struct rtems_ftpd_configuration* config)
 {
   rtems_status_code   sc;
diff --git a/cpukit/include/rtems/ftpd.h b/cpukit/include/rtems/ftpd.h
index b8d5e77..d2a51af 100644
--- a/cpukit/include/rtems/ftpd.h
+++ b/cpukit/include/rtems/ftpd.h
@@ -66,11 +66,13 @@ struct rtems_ftpd_configuration
 #define TRANSIENT       4       /* transient negative completion */
 #define ERROR           5       /* permanent negative completion */
 
-int rtems_ftpd_start(const struct rtems_ftpd_configuration *config);
+rtems_status_code rtems_ftpd_start(
+  const struct rtems_ftpd_configuration *config
+);
 
 extern struct rtems_ftpd_configuration rtems_ftpd_configuration;
 
-int rtems_initialize_ftpd(void);
+rtems_status_code rtems_initialize_ftpd(void);
 
 #ifdef __cplusplus
 }



More information about the vc mailing list