From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Wed, 26 Jun 2024 10:41:41 +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 1sMODj-00CU76-1u for lore@lore.pengutronix.de; Wed, 26 Jun 2024 10:41:41 +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 1sMODh-0007qZ-Ii; Wed, 26 Jun 2024 10:41:37 +0200 Received: from mail-am6eur05on2054.outbound.protection.outlook.com ([40.107.22.54] helo=EUR05-AM6-obe.outbound.protection.outlook.com) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1sLLnS-0008KK-1S; Sun, 23 Jun 2024 13:54:14 +0200 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=NVIbf2RinyUgUCuYE5Bi4XfI0SKrKzGZbE8M9nnGBjcziJc755Dg+v+8HiMJQWYtqT1+jd2a0TPV+OaGfCNx+pf9OYdjbS6fItd9bv/bJgCV5rBLVGHrxYmOxKoThZfFtvazU+aekwQk0a68gMcc2OTUgCIWOoNWso09VpgPI4rQ+Y1L0kG5ma34rWHsi+UZcdY6UHRT20MUL6aLUT2Y1b7e2IXYFnk7qAo66G3znMmVE1uhbNdiprWJTau8xbaoGRJJ0oYpXhZ5mBAAB5J/CP94/xB6zKsF0n35h3ICf2pXVtvKVEDAd1bp64ikG9j57p+BMrlHVc0ocbqh8sK+tA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=qHGsxE/pHlda+4RlMWB7YWCSPuQiSey77CI7hqVyzRw=; b=hGGD/jCpAycQFM5WXRJPt0/W8S42eDB9aicLAm7+nCL+FwX0E2tSDFYVyNagbtw95ppwhZY0U0WZJP1uC5aMNKkBsXITFUPuMM2HiBM7TqqawpAYdJ8H1JzWoanZoG3XFaMeAQRWEk5kuC8/nTj+iZP3lFyZtayHZqGic9XuR53UEikKcNlBuKKqQRPSDIZvqk5pwu28zUZjiivn2laXpY94MxVRM85tNQOSC9RAHEJ3ZNIB6Z/vNdLK7j5y6AsvWh0M5gSLD11EqK3GaJACujV92adbxZgPCym89i/ZuRcZOiCa9NFnoLbRlSiXYTFS3ogwr8mAGplRmuEm3yVEsA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=temperror (sender ip is 193.8.40.94) smtp.rcpttodomain=pengutronix.de smtp.mailfrom=leica-geosystems.com.cn; dmarc=temperror action=none header.from=leica-geosystems.com.cn; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=leica-geosystems.com.cn; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=qHGsxE/pHlda+4RlMWB7YWCSPuQiSey77CI7hqVyzRw=; b=hEu+Kmx3GtGrQsuV6LqvWBK2I7TQr+20sTwS6Cvzgm8UMFBLQURXfG9mT+7O/rEn5LadBewKrsYbaio7c/HBhCOXNxWX4lFN0/j1X0fQghVZYwEZwnczY0opF2+Ukv5NemTS0lqvV0KsTFazK8UH/qkOzJ9/Ip1nXTOTlOaU15U= Received: from AM8P251CA0001.EURP251.PROD.OUTLOOK.COM (2603:10a6:20b:21b::6) by DU2PR06MB8350.eurprd06.prod.outlook.com (2603:10a6:10:2e5::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7698.26; Sun, 23 Jun 2024 11:54:11 +0000 Received: from AMS0EPF00000190.eurprd05.prod.outlook.com (2603:10a6:20b:21b:cafe::77) by AM8P251CA0001.outlook.office365.com (2603:10a6:20b:21b::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7677.38 via Frontend Transport; Sun, 23 Jun 2024 11:54:11 +0000 X-MS-Exchange-Authentication-Results: spf=temperror (sender IP is 193.8.40.94) smtp.mailfrom=leica-geosystems.com.cn; dkim=none (message not signed) header.d=none;dmarc=temperror action=none header.from=leica-geosystems.com.cn; Received-SPF: TempError (protection.outlook.com: error in processing during lookup of leica-geosystems.com.cn: DNS Timeout) Received: from hexagon.com (193.8.40.94) by AMS0EPF00000190.mail.protection.outlook.com (10.167.16.213) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7677.15 via Frontend Transport; Sun, 23 Jun 2024 11:54:09 +0000 Received: from aherlnxbspsrv01.lgs-net.com ([10.60.34.116]) by hexagon.com with Microsoft SMTPSVC(10.0.17763.1697); Sun, 23 Jun 2024 13:54:09 +0200 From: LI Qingwu To: Qing-wu.Li@leica-geosystems.com.cn, oss-tools@pengutronix.de, m.felsch@pengutronix.de Date: Sun, 23 Jun 2024 13:54:03 +0200 Message-Id: <20240623115407.983326-1-Qing-wu.Li@leica-geosystems.com.cn> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-OriginalArrivalTime: 23 Jun 2024 11:54:09.0320 (UTC) FILETIME=[0E999A80:01DAC564] X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AMS0EPF00000190:EE_|DU2PR06MB8350:EE_ Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: b48e95c2-f4a7-44e6-0b56-08dc937b313c X-SET-LOWER-SCL-SCANNER: YES X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230037|36860700010|1800799021|376011|82310400023; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?ATMiqIkOt1+T+L8f8McccIsqqwmG5unLx6sj+bTqpz02J+uJiGmNF/Qe/ICn?= =?us-ascii?Q?zjM4Fap3erTwLbgtCaels+7JlwNxYLsjqSsHpr4kGGSgtSBuYws8eT27UFi6?= =?us-ascii?Q?VknyoxsOe00kkJPodai1qDLHGDWeSAI6HYqe5iCO74Jz/Rwg5XMQz3/OadAM?= =?us-ascii?Q?8YU8ToWrfDy4zEv6O1sg61KiI8+dEbJp68EMkrV5i8aho87bdZ+ZWdRQuYT9?= =?us-ascii?Q?3G/OOB3fNYskgLzkvP6+0Xg5MmlzrWqcbypIGBTBZ99JK7Fx+ZShTiPjHj+t?= =?us-ascii?Q?Ju15y2P85tl+803SNzsxHBKmjoqOgHvTRtb5h8frrH8Oe4ozasnxRfjJd/We?= =?us-ascii?Q?bM7/DluUYpVjDS2oBKYcTqehqoT0lZmIIEwF9dkM8k9SYjzwxQdERqt1IVmG?= =?us-ascii?Q?RNob7hv2WxCHtpiTkqY8JeoZnimU095irUTUvbemCO2rIV9l+fh4sLQVETSR?= =?us-ascii?Q?LGAhUXs83Hsc7XCM4U259rmDNARPZSPc3697u6kqw56P9k6hYGYNDehJ9367?= =?us-ascii?Q?2XW4NPBv+IDcczKyWwUvLpaR37ENZpTJnnuagSF7KdjA2n4v+tqloeVNgi57?= =?us-ascii?Q?KOz0XH4TuQvbhBq7qBpz/IAQNoDU/50gYl1RbwvUN/ZP/hfthIAqJCcTcyKd?= =?us-ascii?Q?dwxhrOMTysIQTF6aNH+VuDRa0CeamyNjdGdNqc5qIGS9JzAZkd+rLFqA8D+M?= =?us-ascii?Q?43xp4Spn8iAqOUPcUtcxbCt62DIqu+nzHjWjlgsXevBToTQ+vgVhzQGAjD4Y?= =?us-ascii?Q?UDPHArVi5lulhbUb7qMsSz/DDU33q5P3XGvepJ0pCfwB5JU3D23cpK85b78L?= =?us-ascii?Q?e0pSC9A63eEd4EZhymZzL1a5GhgS03rjVUBzkmM8qXC8KmxqeD9/nIjlF00H?= =?us-ascii?Q?dkBtbc5juFhxRJMLR5pVQ60DMARlnqCXS8NGmF/JzT82IuSNlbuLXmDsoG4t?= =?us-ascii?Q?dZLSNG1VwaDYIXetahFqNJULYOspusaHMhQNrHcoso3Wm5mWr44z+oRHiCBe?= =?us-ascii?Q?+R2gXb74YelgwZyBPjWQPekB8/XNEWXPxwHYjvxhqMZJB5uocERvaM+7Q9vd?= =?us-ascii?Q?8xqalOPYSzIpgEx7/yXJs4rcy9ALGgIKsGysZkuAFN+CQL5QGtmnlxZLJ0qF?= =?us-ascii?Q?FJ5pogc2ou9t6u2KkwZF174dwdOSI/WE0u8Xrgrlj3EdTLk8Oj3mlBvbEIKW?= =?us-ascii?Q?ZIndW7Eskl1q3Drpm5RllnMNgJGZ1pVPTLg0dFV8a7p6a84uYhSsTi9mRG7S?= =?us-ascii?Q?hd1a4IlD2WKwoGbfKMP3wj4gWLnW+APQNFVTuMxeW9WMuP2xRkU9EeWzOQqs?= =?us-ascii?Q?oackYM4KnywwFrcoYIdS8otGEgNTyZyFwBoKV0QGez/+i35PKjy6Bdqmquz7?= =?us-ascii?Q?VSX0CyQAlHyTFtINTpN0HknKqW9auVcg+mPmNUUk+K2LAX+VWA=3D=3D?= X-Forefront-Antispam-Report: CIP:193.8.40.94; CTRY:CH; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:hexagon.com; PTR:ahersrvdom50.leica-geosystems.com; CAT:NONE; SFS:(13230037)(36860700010)(1800799021)(376011)(82310400023); DIR:OUT; SFP:1101; X-OriginatorOrg: leica-geosystems.com.cn X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Jun 2024 11:54:09.4484 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: b48e95c2-f4a7-44e6-0b56-08dc937b313c X-MS-Exchange-CrossTenant-Id: 1b16ab3e-b8f6-4fe3-9f3e-2db7fe549f6a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=1b16ab3e-b8f6-4fe3-9f3e-2db7fe549f6a; Ip=[193.8.40.94]; Helo=[hexagon.com] X-MS-Exchange-CrossTenant-AuthSource: AMS0EPF00000190.eurprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU2PR06MB8350 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on metis.whiteo.stw.pengutronix.de X-Spam-Level: X-Spam-Status: No, score=-2.7 required=4.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 X-Mailman-Approved-At: Wed, 26 Jun 2024 10:41:34 +0200 Subject: [OSS-Tools] [PATCH platsch V6 1/5] 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: bsp-development.geo@leica-geosystems.com 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 From: Marco Felsch Make the dir and base const. 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; }; -void draw_buffer(struct modeset_dev *dev, char *dir, char *base) +void draw_buffer(struct modeset_dev *dev, const char *dir, const char *base) { int fd_src; char filename[128]; -- 2.34.1