[PATCH] libgloss: use expected prototype for __inln()

Chris Packham judge.packham@gmail.com
Mon Jun 2 05:03:07 GMT 2025


Resolve the following build error

  newlib/libgloss/rs6000/mvme-read.c:31:24: error: too many arguments to function '__inln'; expected 0, have 1
    31 |       char *read_end = __inln (buf);
       |                        ^~~~~~  ~~~

Signed-off-by: Chris Packham <judge.packham@gmail.com>
---
 libgloss/rs6000/mvme-read.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libgloss/rs6000/mvme-read.c b/libgloss/rs6000/mvme-read.c
index 1c823b433..f8c539e76 100644
--- a/libgloss/rs6000/mvme-read.c
+++ b/libgloss/rs6000/mvme-read.c
@@ -14,7 +14,7 @@
  */
 
 extern int inbyte ();
-extern char * __inln ();
+extern char * __inln (char *buf);
 
 /*
  * read  -- read bytes from the serial port. Ignore fd, since
-- 
2.49.0



More information about the Newlib mailing list