[rtems commit] telnetd.c: Fix no prototype warning

Joel Sherrill joel at rtems.org
Thu Mar 24 16:58:38 UTC 2016


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

Author:    Joel Sherrill <joel at rtems.org>
Date:      Sun Mar 20 15:25:02 2016 -0500

telnetd.c: Fix no prototype warning

---

 cpukit/telnetd/telnetd.c | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/cpukit/telnetd/telnetd.c b/cpukit/telnetd/telnetd.c
index 70ccbe1..195ec97 100644
--- a/cpukit/telnetd/telnetd.c
+++ b/cpukit/telnetd/telnetd.c
@@ -482,18 +482,19 @@ telnetd_dflt_spawn(const char *name, unsigned int priority, unsigned int stackSi
 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; }
+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; }
+static __inline__ FILE * _stderr(void) { return stderr; }
 #undef stderr
+FILE *stderr(void);
 FILE *stderr(void) { return _stderr(); }
 #endif
 




More information about the vc mailing list