From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Fri, 14 Jun 2024 12:56:25 +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 1sI4bY-005t6A-2s for lore@lore.pengutronix.de; Fri, 14 Jun 2024 12:56:25 +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 1sI4bX-0000jB-Ey; Fri, 14 Jun 2024 12:56:23 +0200 Received: from mail-am6eur05on2067.outbound.protection.outlook.com ([40.107.22.67] 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 1sI39R-0007ZV-IF; Fri, 14 Jun 2024 11:23:18 +0200 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Br616eUBR4N2j+7Us3hp1dlH9r9U6rY8H2R/ON5CkhUMgTH6CGeBtkGCmyJlIVTiyDC0hUcx0TgTGChVmB6l2cIhMzVJnPpmN1gBiZNVLA5bAKTaXmumNHPrHmz6JH7dh0CNVbDKEOjCd1VPmJBmQuXCUuhEGOk4rMWp+Hxxa9scEMP2XfC8wDx8dERYiyHBMxoYCxxDsFFQ+MfV+C/SI22w37jYT6k0rv/d3t/31P3CuSpbJllAiStlaWDDVzoCx6zu7SX8Osnft9QXMqOOMSFGbeBUOenuUn9UC84SQ9oPr8N7O/UC3xbUf3/tyOrxqu8jGhHdCWQF1Ugi2XS+Qw== 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=SebZ6qH1hIjuXmgy0YvslKsaJW9okCCweLZytejbSClI1HdM00Wvf7/IppKPtg2zFVKFvYyjnoN3I9pg+X2hGqs9PwzK0gs+DpLE9XwkNyKrJRUJ8I31pmTMzSSu6y4y8EYLx+RaUlzKGzD119zGsZcJHTE+rQPQnllztXbEYnYzVIQbYasOWM51P45PfF+eoJDoGWfLx8az+DlAg+RH5SmUFJas/sJ/YlqAcJRNfVhjPC2nFjp1tjygQSG9c9D3o7qQCaWM6wdA1akqDKX4qP8kBBlyld5Gk9c93ke4j1Epl2nmtvG1mInxqt7N1m6j00Pd9RepMwvbs+ukLVbhgg== 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=tSQi/R7joYiAEPgWeE8ti94BZnfVFW+BZbYM0ez8IuEgVFka4SJNim6LI2pj+ID6AfoheGlHQiCHUMY7//D82GY0YL+W8s6KnZpFZR0iCKWSm07sns1n/jAuWDzwr8NQus3skVDV4mCf+b5T1nBNysXxTCshyN/PT+1FFcmHXD0= Received: from AS8PR04CA0088.eurprd04.prod.outlook.com (2603:10a6:20b:313::33) by VE1PR06MB6893.eurprd06.prod.outlook.com (2603:10a6:800:1a2::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7677.25; Fri, 14 Jun 2024 09:23:15 +0000 Received: from AMS0EPF000001A1.eurprd05.prod.outlook.com (2603:10a6:20b:313:cafe::4) by AS8PR04CA0088.outlook.office365.com (2603:10a6:20b:313::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7677.25 via Frontend Transport; Fri, 14 Jun 2024 09:23:15 +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 AMS0EPF000001A1.mail.protection.outlook.com (10.167.16.231) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7677.15 via Frontend Transport; Fri, 14 Jun 2024 09:23:13 +0000 Received: from aherlnxbspsrv01.lgs-net.com ([10.60.34.116]) by hexagon.com with Microsoft SMTPSVC(10.0.17763.1697); Fri, 14 Jun 2024 11:23:13 +0200 From: LI Qingwu To: Qing-wu.Li@leica-geosystems.com.cn, oss-tools@pengutronix.de, m.felsch@pengutronix.de Date: Fri, 14 Jun 2024 11:23:05 +0200 Message-Id: <20240614092308.1429018-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: 14 Jun 2024 09:23:13.0422 (UTC) FILETIME=[7B257AE0:01DABE3C] X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AMS0EPF000001A1:EE_|VE1PR06MB6893:EE_ Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: b91314d8-05d1-414b-85cc-08dc8c539de4 X-SET-LOWER-SCL-SCANNER: YES X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230035|36860700008|376009|1800799019|82310400021; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?4FvvCEX17H4cLQjerqCuaChS77pvw413wTjpvUGw7AQY0AUufHZh4++aXjYL?= =?us-ascii?Q?j62EJxfUlw+MjNEJ18piUTOIj4sKaAeWMnX3zEjbRTqvPFmPhxzTTetTgReg?= =?us-ascii?Q?LAeBnJ8gDkDdU5hrG/oMD/AM7153NBQgrHACFJn9How3RQ5johWPUajj6G6N?= =?us-ascii?Q?c73ueBc4//wKt2V3cX4uwdtxmfZDwM2AgU9hK4B7/WB8y3VmyFzNtk+JvH79?= =?us-ascii?Q?uTDL07FeGhI4sDc7JCJDG261zGjvd27p1ugW306zh9bSRrJPPZJS60MXAsLT?= =?us-ascii?Q?ekYqgghkWQ5vt2N6uXGjzqjM64DaJHm+6o+C9CrggBMbG5/ChgHghUIyUq0u?= =?us-ascii?Q?5qnjGmZkgOuUc992H1A5I8Si4FLKzLgk2rTJx+rt9k0MDN1MZYTuX0HYrmnd?= =?us-ascii?Q?GtGgyJ8mtncIVZF0hPNojtVS6ZVFVCzBu6rCLaou7Qo/Zcv+JTkkryAvqTjj?= =?us-ascii?Q?EwYmM1wB4ELPUkXMhBLVjNKjhbfdyjWuZ2fZHGO187vdhASk7uNvZ2el36Hu?= =?us-ascii?Q?NPPiyWB7Wr7sG5MOV8DJIQHhbdYpXy9IxKLNX0pKi06D2zpLWyB1FwSSrj9w?= =?us-ascii?Q?/Nf3cQbgLls0rLHQQSnRcyKB5Q6NIRU+bM89rZpchOFtri15Ww0XbOWOuOL1?= =?us-ascii?Q?Q9QA3Km3bEGiRzOh2l1VGkxijYbc41jeJVhF/6IPVNJg8/d5blUIoDQRIcAj?= =?us-ascii?Q?mEHVBYSfpx+zANGQOg1kln4s9F/gDJ7eg58rN8hrKjOOVfZWfLvvbPR0uvsu?= =?us-ascii?Q?9ycr72gn3Q4L3pwbwR2qJAt6ITKKWVUZ09qltj8qW1Hmwe1oIrqD40r4Cmwv?= =?us-ascii?Q?AWO+onHijjQgPw0NqxpZGCJ2CDllL0uifMx3wffkP8fezi98bd435p4sBhhJ?= =?us-ascii?Q?eIRm8rKyLJ+mpeqiEjANmxUd31adNPR/HKu/t4tQOIY1pOWrlZTr8R3p3Pm9?= =?us-ascii?Q?UHUuHBfk9O21FlW2vj+NQT0qLt17Fmh3g7wTuwvEN7HqCu/c6vJGkoNBTr4l?= =?us-ascii?Q?l+1rFyUV81wrqcursqM7Lfh7CDILLU1r5ZWDc0oStm2pMl1oPmSy6uMShr5j?= =?us-ascii?Q?BPCrFIJvDetajGmSmk+uX+eoFJj4DFpZi0ZzU/rk3R6VQXeausOg/LGcQxQR?= =?us-ascii?Q?0g/a9XJA2eKI2yafYaF4LX2o23QYTdpdOkdU/rLwraxQuupOTfnaB9+dndu6?= =?us-ascii?Q?29cmIrpXagCBoyyOvVJEMjxKD6c8MQSNd5XQ8GZfBAb9WuCqqaNwQRaKDwgc?= =?us-ascii?Q?XVqN0jBUXA0cndRneV4F4v90MvArYvJBlHHkl8X5cSFeYaH5e8PXnjWbLsh6?= =?us-ascii?Q?j/3xDTv+DfixLoc4DWdBYtY5yvg+dfGIp14ANpmKoNjLE1uIaGUv267JwoTx?= =?us-ascii?Q?pFHC6qms97XbuQsFW6199LJTcoKSAdG9aoS/YoPslHw+7g5BUQ=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:(13230035)(36860700008)(376009)(1800799019)(82310400021); DIR:OUT; SFP:1101; X-OriginatorOrg: leica-geosystems.com.cn X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Jun 2024 09:23:13.7222 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: b91314d8-05d1-414b-85cc-08dc8c539de4 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: AMS0EPF000001A1.eurprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1PR06MB6893 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.8 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,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 X-Mailman-Approved-At: Fri, 14 Jun 2024 12:56:20 +0200 Subject: [OSS-Tools] [PATCH platsch V4 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: , 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