[PATCH] telnetd: Remove CEXP convenience routines

Sebastian Huber sebastian.huber at embedded-brains.de
Mon Oct 1 06:20:53 UTC 2018


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 60eb1d075f..6d8069ad87 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 !!!!!!!!!!!!! */
-- 
2.16.4



More information about the devel mailing list