[PATCH 03/14] telnetd.c: Fix no prototype warning
Joel Sherrill
joel at rtems.org
Tue Mar 22 14:40:31 UTC 2016
---
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
--
1.8.3.1
More information about the devel
mailing list