From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Fri, 14 Jun 2024 07:30:32 +0200 Received: from metis.whiteo.stw.pengutronix.de ([2a0a:edc0:2:b01:1d::104]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1sHzWC-005lQA-1v for lore@lore.pengutronix.de; Fri, 14 Jun 2024 07:30:32 +0200 Received: from localhost ([127.0.0.1] helo=metis.whiteo.stw.pengutronix.de) by metis.whiteo.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1sHzWB-0007hb-2j; Fri, 14 Jun 2024 07:30:31 +0200 Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1sHzW9-0007hA-4T; Fri, 14 Jun 2024 07:30:29 +0200 Received: from [2a0a:edc0:2:b01:1d::c5] (helo=pty.whiteo.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sHzW6-002C6H-MY; Fri, 14 Jun 2024 07:30:26 +0200 Received: from uol by pty.whiteo.stw.pengutronix.de with local (Exim 4.96) (envelope-from ) id 1sHzW6-00AKl3-1x; Fri, 14 Jun 2024 07:30:26 +0200 From: =?utf-8?Q?Ulrich_=C3=96lmann?= To: LI Qingwu In-Reply-To: <20240613070724.3400651-1-Qing-wu.Li@leica-geosystems.com.cn> (LI Qingwu's message of "Thu, 13 Jun 2024 09:07:21 +0200") References: <20240613070724.3400651-1-Qing-wu.Li@leica-geosystems.com.cn> User-Agent: mu4e 1.12.4; emacs 29.2 Date: Fri, 14 Jun 2024 07:30:26 +0200 Message-ID: <6rwmmsnlal.fsf@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [OSS-Tools] [PATCH platsch V3 1/4] platsch: constify draw_buffer X-BeenThere: oss-tools@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: Pengutronix Public Open-Source-Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: oss-tools@pengutronix.de, m.felsch@pengutronix.de Sender: "OSS-Tools" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: oss-tools-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false Hi Qingwu Li, On Thu, Jun 13 2024 at 09:07 +0200, LI Qingwu wrote: > From: Marco Felsch > > Make the dir and base const. > > Upstream-Status: Pending please drop the last line, it is only required in the context of a Yocto-BSP. Best regards Ulrich > Signed-off-by: Marco Felsch > --- > platsch.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/platsch.c b/platsch.c > index 535b589..1aaa8d5 100644 > --- a/platsch.c > +++ b/platsch.c > @@ -111,7 +111,7 @@ struct modeset_dev { > uint32_t crtc_id; > }; >=20=20 > -void draw_buffer(struct modeset_dev *dev, char *dir, char *base) > +void draw_buffer(struct modeset_dev *dev, const char *dir, const char *b= ase) > { > int fd_src; > char filename[128]; --=20 Pengutronix e.K. | Ulrich =C3=96lmann = | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |