From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dedi548.your-server.de (dedi548.your-server.de [85.10.215.148]) by sourceware.org (Postfix) with ESMTPS id 2546A3858405 for ; Wed, 30 Mar 2022 09:57:50 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 2546A3858405 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=embedded-brains.de Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=embedded-brains.de Received: from sslproxy06.your-server.de ([78.46.172.3]) by dedi548.your-server.de with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1nZV5I-000FUn-R4 for newlib@sourceware.org; Wed, 30 Mar 2022 11:57:48 +0200 Received: from [82.100.198.138] (helo=mail.embedded-brains.de) by sslproxy06.your-server.de with esmtpsa (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nZV5I-000Qe3-OF for newlib@sourceware.org; Wed, 30 Mar 2022 11:57:48 +0200 Received: from localhost (localhost [127.0.0.1]) by mail.embedded-brains.de (Postfix) with ESMTP id 6BCAF480024 for ; Wed, 30 Mar 2022 11:57:48 +0200 (CEST) Received: from mail.embedded-brains.de ([127.0.0.1]) by localhost (zimbra.eb.localhost [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id pCcv0dTr4DUL for ; Wed, 30 Mar 2022 11:57:48 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by mail.embedded-brains.de (Postfix) with ESMTP id 292C9480107 for ; Wed, 30 Mar 2022 11:57:48 +0200 (CEST) X-Virus-Scanned: amavisd-new at zimbra.eb.localhost Received: from mail.embedded-brains.de ([127.0.0.1]) by localhost (zimbra.eb.localhost [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id wkBIFH7GYOfS for ; Wed, 30 Mar 2022 11:57:48 +0200 (CEST) Received: from zimbra.eb.localhost (unknown [192.168.96.242]) by mail.embedded-brains.de (Postfix) with ESMTPSA id 03E30480077 for ; Wed, 30 Mar 2022 11:57:48 +0200 (CEST) From: Sebastian Huber To: newlib@sourceware.org Subject: [PATCH 2/2] newlib: Rename __sfmoreglue() and make it static Date: Wed, 30 Mar 2022 11:57:45 +0200 Message-Id: <20220330095745.72802-2-sebastian.huber@embedded-brains.de> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220330095745.72802-1-sebastian.huber@embedded-brains.de> References: <20220330095745.72802-1-sebastian.huber@embedded-brains.de> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Authenticated-Sender: smtp-embedded@poldinet.de X-Virus-Scanned: Clear (ClamAV 0.103.5/26497/Wed Mar 30 10:19:51 2022) X-Spam-Status: No, score=-11.0 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_STATUS, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: newlib@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Newlib mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Mar 2022 09:57:51 -0000 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. --- newlib/libc/stdio/findfp.c | 7 +++---- newlib/libc/stdio/local.h | 1 - 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/newlib/libc/stdio/findfp.c b/newlib/libc/stdio/findfp.c index 7bb48e014..eca47bd92 100644 --- a/newlib/libc/stdio/findfp.c +++ b/newlib/libc/stdio/findfp.c @@ -122,9 +122,8 @@ struct glue_with_file { FILE file; }; =20 -struct _glue * -__sfmoreglue (struct _reent *d, - register int n) +static struct _glue * +sfmoreglue (struct _reent *d, int n) { struct glue_with_file *g; =20 @@ -160,7 +159,7 @@ __sfp (struct _reent *d) if (fp->_flags =3D=3D 0) goto found; if (g->_next =3D=3D NULL && - (g->_next =3D __sfmoreglue (d, NDYNAMIC)) =3D=3D NULL) + (g->_next =3D sfmoreglue (d, NDYNAMIC)) =3D=3D NULL) break; } _newlib_sfp_lock_exit (); diff --git a/newlib/libc/stdio/local.h b/newlib/libc/stdio/local.h index 09ccd6407..86422eb11 100644 --- a/newlib/libc/stdio/local.h +++ b/newlib/libc/stdio/local.h @@ -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 *, FI= LE *)); -struct _glue * __sfmoreglue (struct _reent *,int n); extern int __submore (struct _reent *, FILE *); =20 #ifdef __LARGE64_FILES --=20 2.34.1