[PATCH 4/5] telnetd.c: Fix no prototype warning
Joel Sherrill
joel at rtems.org
Sun Mar 20 20:40:52 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..8152ce3 100644
--- a/cpukit/telnetd/telnetd.c
+++ b/cpukit/telnetd/telnetd.c
@@ -482,17 +482,18 @@ 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);
+static __inline__ FILE * _stdout(void) { return stdout; }
#undef stdout
FILE *stdout(void) { return _stdout(); }
#endif
#ifdef stderr
-static __inline__ FILE *
-_stderr(void) { return stderr; }
+static __inline__ FILE * _stderr(void);
+static __inline__ FILE * _stderr(void) { return stderr; }
#undef stderr
FILE *stderr(void) { return _stderr(); }
#endif
--
1.8.3.1
More information about the devel
mailing list