[rtems commit] telnetd: Remove CEXP convenience routines

Sebastian Huber sebh at rtems.org
Thu Oct 4 08:49:39 UTC 2018


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

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Mon Oct  1 08:20:11 2018 +0200

telnetd: Remove CEXP convenience routines

Close #3535.

---

 cpukit/telnetd/telnetd.c | 25 -------------------------
 1 file changed, 25 deletions(-)

diff --git a/cpukit/telnetd/telnetd.c b/cpukit/telnetd/telnetd.c
index 5c9607d..f68b08a 100644
--- a/cpukit/telnetd/telnetd.c
+++ b/cpukit/telnetd/telnetd.c
@@ -495,28 +495,3 @@ telnetd_dflt_spawn(const char *name, unsigned int priority, unsigned int stackSi
   }
   return task_id;
 }
-
-/* convenience routines for CEXP (retrieve stdio descriptors
- * from reent structure)
- */
-#ifdef stdin
-static __inline__ FILE *
-_stdin(void)  { return stdin; }
-#undef stdin
-FILE *stdin(void);
-FILE *stdin(void)  { return _stdin(); }
-#endif
-#ifdef stdout
-static __inline__ FILE * _stdout(void) { return stdout; }
-#undef stdout
-FILE *stdout(void);
-FILE *stdout(void) { return _stdout(); }
-#endif
-#ifdef stderr
-static __inline__ FILE * _stderr(void) { return stderr; }
-#undef stderr
-FILE *stderr(void);
-FILE *stderr(void) { return _stderr(); }
-#endif
-
-/* MUST NOT USE stdin & friends below here !!!!!!!!!!!!! */



More information about the vc mailing list