From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Wed, 21 Jun 2023 16:18:20 +0200 Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qByf7-00FkLE-Cp for lore@lore.pengutronix.de; Wed, 21 Jun 2023 16:18:20 +0200 Received: from localhost ([127.0.0.1] helo=metis.ext.pengutronix.de) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1qByf3-0008Gr-TJ; Wed, 21 Jun 2023 16:18:17 +0200 Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qByf1-0008EZ-OA; Wed, 21 Jun 2023 16:18:15 +0200 Received: from [2a0a:edc0:0:1101:1d::39] (helo=dude03.red.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtp (Exim 4.94.2) (envelope-from ) id 1qByf1-0093yd-3e; Wed, 21 Jun 2023 16:18:15 +0200 Received: from uol by dude03.red.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1qByez-00DBj7-VX; Wed, 21 Jun 2023 16:18:13 +0200 From: =?UTF-8?q?Ulrich=20=C3=96lmann?= To: oss-tools@pengutronix.de Date: Wed, 21 Jun 2023 16:17:51 +0200 Message-Id: <20230621141754.3143325-2-u.oelmann@pengutronix.de> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230621141754.3143325-1-u.oelmann@pengutronix.de> References: <20230621141754.3143325-1-u.oelmann@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: [OSS-Tools] [PATCH platsch 2/5] use pointers to immutable strings for cmdline options 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: , 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.ext.pengutronix.de); SAEximRunCond expanded to false Signed-off-by: Ulrich Ölmann --- platsch.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/platsch.c b/platsch.c index c75f934935f2..8228b2f8a886 100644 --- a/platsch.c +++ b/platsch.c @@ -565,8 +565,8 @@ int main(int argc, char *argv[]) char drmdev[128]; struct modeset_dev *iter; bool pid1 = getpid() == 1; - char *dir = "/usr/share/platsch"; - char *base = "splash"; + const char *dir = "/usr/share/platsch"; + const char *base = "splash"; int ret = 0, c, i; if (!pid1) { -- 2.39.2