newlib: Rename __sfmoreglue() and make it static

Rename __sfmoreglue() in sfmoreglue() and make it static.  This function is
only used by __sfp() in the same translation unit.

Remove use of register keyword.
This commit is contained in:
Sebastian Huber 2022-03-30 11:19:59 +02:00
parent 7a5903078d
commit 3c722c8022
2 changed files with 3 additions and 5 deletions

View File

@ -122,9 +122,8 @@ struct glue_with_file {
FILE file;
};
struct _glue *
__sfmoreglue (struct _reent *d,
register int n)
static struct _glue *
sfmoreglue (struct _reent *d, int n)
{
struct glue_with_file *g;
@ -160,7 +159,7 @@ __sfp (struct _reent *d)
if (fp->_flags == 0)
goto found;
if (g->_next == NULL &&
(g->_next = __sfmoreglue (d, NDYNAMIC)) == NULL)
(g->_next = sfmoreglue (d, NDYNAMIC)) == NULL)
break;
}
_newlib_sfp_lock_exit ();

View File

@ -184,7 +184,6 @@ extern void _cleanup_r (struct _reent *);
extern void __smakebuf_r (struct _reent *, FILE *);
extern int __swhatbuf_r (struct _reent *, FILE *, size_t *, int *);
extern int _fwalk_reent (struct _reent *, int (*)(struct _reent *, FILE *));
struct _glue * __sfmoreglue (struct _reent *,int n);
extern int __submore (struct _reent *, FILE *);
#ifdef __LARGE64_FILES